Uses of Interface
ch.powerunit.extensions.exceptions.ExceptionMapper
-
-
Uses of ExceptionMapper in ch.powerunit.extensions.exceptions
Methods in ch.powerunit.extensions.exceptions that return ExceptionMapper Modifier and Type Method Description static <E extends Exception>
ExceptionMapperExceptionMapper. forException(Class<E> clazz, Function<E,RuntimeException> mapper)
Helper method to create exception wrapper that check the exception class.static <E extends Exception>
ExceptionMapperExceptionMapper. forException(Class<E> clazz, Function<E,RuntimeException> mapper, int order)
Helper method to create exception wrapper that check the exception class.static ExceptionMapper
ExceptionMapper. jaxbExceptionMapper()
Exception wrapper, that may be used to copy jaxb information to theWrappedException
message.static ExceptionMapper
ExceptionMapper. saxExceptionMapper()
Exception wrapper, that may be used to copy sax information to theWrappedException
message.static ExceptionMapper
ExceptionMapper. sqlExceptionMapper()
Exception wrapper, that may be used to copy error code and sql state to theWrappedException
message.static ExceptionMapper
ExceptionMapper. transformerExceptionMapper()
Exception wrapper, that may be used to copy transformer exception information to theWrappedException
message.Methods in ch.powerunit.extensions.exceptions with parameters of type ExceptionMapper Modifier and Type Method Description static Function<Exception,RuntimeException>
ExceptionMapper. forExceptions(ExceptionMapper... mappers)
Helper method to create exception wrapper that use the first one that is applicable.static Function<Exception,RuntimeException>
ExceptionMapper. forExceptions(ExceptionMapper mapper1, ExceptionMapper mapper2)
Helper method to create exception wrapper to use the first mapper if applicable or else the second.static Function<Exception,RuntimeException>
ExceptionMapper. forExceptions(ExceptionMapper mapper1, ExceptionMapper mapper2, ExceptionMapper mapper3)
Helper method to create exception wrapper to use the first mapper if applicable or else the second or else the thirdMethod parameters in ch.powerunit.extensions.exceptions with type arguments of type ExceptionMapper Modifier and Type Method Description static Function<Exception,RuntimeException>
ExceptionMapper. forOrderedExceptions(Collection<ExceptionMapper> mappers)
Helper method to create exception wrapper that use the first one that is applicable, but having them sorted using theorder()
method.
-