Package org.apache.fop.events
Class EventExceptionManager
java.lang.Object
org.apache.fop.events.EventExceptionManager
This class is responsible for converting events into exceptions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
This interface is implementation by exception factories that can create exceptions from events. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<String,
EventExceptionManager.ExceptionFactory> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
throwException
(Event event, String exceptionClass) Converts an event into an exception and throws that.
-
Field Details
-
EXCEPTION_FACTORIES
-
-
Constructor Details
-
EventExceptionManager
private EventExceptionManager()
-
-
Method Details
-
throwException
Converts an event into an exception and throws that. If the exception class is null, aRuntimeException
will be thrown.- Parameters:
event
- the event to be convertedexceptionClass
- the exception class to be thrown- Throws:
Throwable
- this happens always
-