@RestControllerAdvice public class ApiExceptionHandler extends Object
| Constructor and Description |
|---|
ApiExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> |
defaultErrorHandler(javax.servlet.http.HttpServletRequest httpServletRequest,
Exception exception)
Method to handle
RuntimeException. |
org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> |
emptyLengthException(javax.servlet.http.HttpServletRequest httpServletRequest,
TokenIdGeneratorException e) |
@ExceptionHandler(value=io.mosip.kernel.core.idgenerator.exception.TokenIdGeneratorException.class) public org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> emptyLengthException(javax.servlet.http.HttpServletRequest httpServletRequest, TokenIdGeneratorException e) throws IOException
IOException@ExceptionHandler(value={java.lang.Exception.class,java.lang.RuntimeException.class})
public org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> defaultErrorHandler(javax.servlet.http.HttpServletRequest httpServletRequest,
Exception exception)
throws IOException
RuntimeException.request - the servlet request.exception - the exception.ErrorResponse.IOExceptionCopyright © 2020. All rights reserved.