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 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 - The IAPIInvoker object that invoked the API function
        aInvokableDescriptor - API invoker. Never null.
        aRequestScope - The request scope. Never null.
        t - The exception. Never null.