public class HttpExceptionHandler extends Object
Constructor and Description |
---|
HttpExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
static ResponseException |
mapException(String message,
int status)
Maps an Exception based on the underlying status code
|
static ResponseException |
mapException(String message,
int status,
Throwable cause)
Maps an Exception based on the underlying status code
|
public static ResponseException mapException(String message, int status)
message
- the messagestatus
- the statuspublic static ResponseException mapException(String message, int status, Throwable cause)
message
- the messagestatus
- the statuscause
- the causeCopyright © 2017. All rights reserved.