Package com.helger.photon.api.callback
Class LoggingAPIExceptionCallback
- java.lang.Object
-
- com.helger.photon.api.callback.LoggingAPIExceptionCallback
-
- All Implemented Interfaces:
com.helger.commons.callback.ICallback,IAPIExceptionCallback
public class LoggingAPIExceptionCallback extends Object implements IAPIExceptionCallback
Implementation ofIAPIExceptionCallbacklogging to an SLF4J logger- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description LoggingAPIExceptionCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAPIExecutionException(IAPIInvoker aInvoker, InvokableAPIDescriptor aInvokableDescriptor, com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, Throwable t)Called when an unmapped exception occurred while executing the server side code.
-
-
-
Method Detail
-
onAPIExecutionException
public void onAPIExecutionException(@Nonnull IAPIInvoker aInvoker, @Nonnull InvokableAPIDescriptor aInvokableDescriptor, @Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull Throwable t)
Description copied from interface:IAPIExceptionCallbackCalled when an unmapped exception occurred while executing the server side code.- Specified by:
onAPIExecutionExceptionin interfaceIAPIExceptionCallback- Parameters:
aInvoker- TheIAPIInvokerobject that invoked the API functionaInvokableDescriptor- API invoker. Nevernull.aRequestScope- The request scope. Nevernull.t- The exception. Nevernull.
-
-