Add and use FFM-specific exception classes