public class RestException extends RuntimeException
RestError object, that will be returned
in the HTTP response when the exception is thrown.| Constructor and Description |
|---|
RestException(org.springframework.http.HttpStatus status,
Integer code,
String message,
String developerMessage,
String moreInfoUrl) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getCode() |
String |
getDeveloperMessage() |
String |
getMessage() |
String |
getMoreInfoUrl() |
RestError |
getRestError() |
org.springframework.http.HttpStatus |
getStatus() |
void |
setCode(Integer code) |
void |
setDeveloperMessage(String developerMessage) |
void |
setMessage(String message) |
void |
setMoreInfoUrl(String moreInfoUrl) |
void |
setStatus(org.springframework.http.HttpStatus status) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic org.springframework.http.HttpStatus getStatus()
public void setStatus(org.springframework.http.HttpStatus status)
public Integer getCode()
public void setCode(Integer code)
public String getMessage()
getMessage in class Throwablepublic void setMessage(String message)
public String getDeveloperMessage()
public void setDeveloperMessage(String developerMessage)
public String getMoreInfoUrl()
public void setMoreInfoUrl(String moreInfoUrl)
public RestError getRestError()
Copyright © 2016. All rights reserved.