Package com.helger.photon.api
Interface IAPIExceptionCallback
-
- All Superinterfaces:
com.helger.commons.callback.ICallback
- All Known Implementing Classes:
LoggingAPIExceptionCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IAPIExceptionCallback extends com.helger.commons.callback.ICallback
Callback interface to handle thrown but unmapped exception objects from the API servlet.- Author:
- Philip Helger
- See Also:
for mapping exceptions to the response
-
-
Method Summary
All Methods Instance Methods Abstract 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
void onAPIExecutionException(@Nonnull IAPIInvoker aInvoker, @Nonnull InvokableAPIDescriptor aInvokableDescriptor, @Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull Throwable t)
Called when an unmapped exception occurred while executing the server side code.- Parameters:
aInvoker- TheIAPIInvokerobject that invoked the API functionaInvokableDescriptor- API invoker. Nevernull.aRequestScope- The request scope. Nevernull.t- The exception. Nevernull.
-
-