Package com.helger.photon.api
Interface IAPIExceptionMapper
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractAPIExceptionMapper
public interface IAPIExceptionMapper extends Serializable
API exception mapper to convert exceptions into reasonable HTTP responses. It is called from insideAPIInvokerin case an exception is thrown. SeeIAPIDescriptorfor the assignment.- Since:
- 8.1.3
- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.helger.commons.state.EHandledapplyExceptionOnResponse(InvokableAPIDescriptor aInvokableDescriptor, com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, com.helger.servlet.response.UnifiedResponse aUnifiedResponse, Throwable aThrowable)
-
-
-
Method Detail
-
applyExceptionOnResponse
@Nonnull com.helger.commons.state.EHandled applyExceptionOnResponse(@Nonnull InvokableAPIDescriptor aInvokableDescriptor, @Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull com.helger.servlet.response.UnifiedResponse aUnifiedResponse, @Nonnull Throwable aThrowable)
- Parameters:
aInvokableDescriptor- The current invokable descriptor. Nevernull.aRequestScope- The current request scope. Nevernull.aUnifiedResponse- The current response. Nevernull.aThrowable- The thrown Exception. Nevernull.- Returns:
EHandled.HANDLEDto indicate that the exception was handled and should NOT be re-thrown.
-
-