Class CompositeLicenseExceptionHandler
java.lang.Object
com.atlassian.confluence.license.exception.handler.CompositeLicenseExceptionHandler
- All Implemented Interfaces:
LicenseExceptionHandler<Exception>
public class CompositeLicenseExceptionHandler
extends Object
implements LicenseExceptionHandler<Exception>
Ensures that the more specific
LicenseExceptionHandler
gets asked before.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCompositeLicenseExceptionHandler
(I18NBean i18NBean, Map<Class<? extends Exception>, LicenseExceptionHandler<? extends Exception>> handlers) -
Method Summary
-
Field Details
-
log
public static final org.slf4j.Logger log
-
-
Constructor Details
-
CompositeLicenseExceptionHandler
-
-
Method Details
-
handle
- Specified by:
handle
in interfaceLicenseExceptionHandler<Exception>
- Parameters:
exception
- the exception to translate- Returns:
- a default localised message if the exception could not be mapped or a specialised localised message explaining the reason for the exception, return null to indicate that the exception was not handled
-