Package com.cksource.ckfinder.listener
Class ExceptionEventListener
java.lang.Object
com.cksource.ckfinder.listener.ExceptionEventListener
- All Implemented Interfaces:
Listener<ExceptionEvent>
,EventListener
,ApplicationListener<ExceptionEvent>
Formats the HTTP response in case if exception is thrown.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionformatResponse
(int errorCode, String message) void
onApplicationEvent
(ExceptionEvent event) Handler method forExceptionEvent
.
-
Constructor Details
-
ExceptionEventListener
public ExceptionEventListener()
-
-
Method Details
-
onApplicationEvent
Handler method forExceptionEvent
.- Specified by:
onApplicationEvent
in interfaceApplicationListener<ExceptionEvent>
- Parameters:
event
- event object
-
formatResponse
- Throws:
IOException
-