public interface PaywallExceptionHandler
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<java.lang.Object> |
handleException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception exception)
Method to handle paywall related exceptions in a uniform way.
|
org.springframework.http.ResponseEntity<java.lang.Object> |
handleException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception exception,
java.util.List<java.lang.String> errorMessages)
Method to handle paywall related exceptions in a uniform way.
|
org.springframework.http.ResponseEntity<java.lang.Object> |
handleException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception exception,
java.lang.String errorMessage)
Method to handle paywall related exceptions in a uniform way.
|
org.springframework.http.ResponseEntity<java.lang.Object> |
handleException(RequestHelper.RequestType requestType,
java.lang.Exception exception)
Method to handle paywall related exceptions in a uniform way but from
a WebSocket context.
|
org.springframework.http.ResponseEntity<java.lang.Object> |
handleException(RequestHelper.RequestType requestType,
java.lang.Exception exception,
java.util.List<java.lang.String> errorMessages)
Method to handle paywall related exceptions in a uniform way but from
a WebSocket context.
|
org.springframework.http.ResponseEntity<java.lang.Object> handleException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Exception exception)
request
- the related http request.response
- the related http response.exception
- the exception thrown in controller.org.springframework.http.ResponseEntity<java.lang.Object> handleException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Exception exception, java.lang.String errorMessage)
request
- the related http request.response
- the related http response.exception
- the exception thrown in controller.errorMessage
- extra constructed error message returned.org.springframework.http.ResponseEntity<java.lang.Object> handleException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Exception exception, java.util.List<java.lang.String> errorMessages)
request
- the related http request.response
- the related http response.exception
- the exception thrown in controller.errorMessages
- extra constructed error messages returned.org.springframework.http.ResponseEntity<java.lang.Object> handleException(RequestHelper.RequestType requestType, java.lang.Exception exception)
requestType
- the expected type in response.exception
- the exception thrown in controller.org.springframework.http.ResponseEntity<java.lang.Object> handleException(RequestHelper.RequestType requestType, java.lang.Exception exception, java.util.List<java.lang.String> errorMessages)
requestType
- the expected type in response.exception
- the exception thrown in controller.errorMessages
- extra constructed error messages returned.