Package org.apache.fop.events
Class EventExceptionManager
- java.lang.Object
-
- org.apache.fop.events.EventExceptionManager
-
public final class EventExceptionManager extends java.lang.Object
This class is responsible for converting events into exceptions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
EventExceptionManager.ExceptionFactory
This interface is implementation by exception factories that can create exceptions from events.
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,EventExceptionManager.ExceptionFactory>
EXCEPTION_FACTORIES
-
Constructor Summary
Constructors Modifier Constructor Description private
EventExceptionManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
throwException(Event event, java.lang.String exceptionClass)
Converts an event into an exception and throws that.
-
-
-
Field Detail
-
EXCEPTION_FACTORIES
private static final java.util.Map<java.lang.String,EventExceptionManager.ExceptionFactory> EXCEPTION_FACTORIES
-
-
Method Detail
-
throwException
public static void throwException(Event event, java.lang.String exceptionClass) throws java.lang.Throwable
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:
java.lang.Throwable
- this happens always
-
-