public class SpringPaywallExceptionHandler extends java.lang.Object implements PaywallExceptionHandler
PaywallExceptionHandler| Constructor and Description |
|---|
SpringPaywallExceptionHandler() |
| 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.
|
public org.springframework.http.ResponseEntity<java.lang.Object> handleException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception exception)
handleException in interface PaywallExceptionHandlerrequest - the related http request.response - the related http response.exception - the exception thrown in controller.public 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)
handleException in interface PaywallExceptionHandlerrequest - the related http request.response - the related http response.exception - the exception thrown in controller.errorMessage - extra constructed error message returned.public 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)
handleException in interface PaywallExceptionHandlerrequest - the related http request.response - the related http response.exception - the exception thrown in controller.errorMessages - a list of constructed error messages to return.public org.springframework.http.ResponseEntity<java.lang.Object> handleException(RequestHelper.RequestType requestType, java.lang.Exception exception)
handleException in interface PaywallExceptionHandlerrequestType - the expected type in response.exception - the exception thrown in controller.public org.springframework.http.ResponseEntity<java.lang.Object> handleException(RequestHelper.RequestType requestType, java.lang.Exception exception, java.util.List<java.lang.String> errorMessages)
handleException in interface PaywallExceptionHandlerrequestType - the expected type in response.exception - the exception thrown in controller.errorMessages - extra constructed error messages returned.