public class SiteWhereSystemException extends SiteWhereException
Constructor and Description |
---|
SiteWhereSystemException(ErrorCode code,
ErrorLevel level) |
SiteWhereSystemException(ErrorCode code,
ErrorLevel level,
int httpResponseCode) |
SiteWhereSystemException(ErrorCode code,
java.lang.Throwable cause,
ErrorLevel level) |
Modifier and Type | Method and Description |
---|---|
ErrorCode |
getCode()
Get the error code.
|
int |
getHttpResponseCode()
Get HTTP response code.
|
ErrorLevel |
getLevel()
Get the error level.
|
boolean |
hasHttpResponseCode()
Check whether an HTTP response code was set.
|
void |
setCode(ErrorCode code)
Set the error code.
|
void |
setHttpResponseCode(int httpResponseCode)
Set HTTP response code.
|
void |
setLevel(ErrorLevel level)
Set the error level.
|
public SiteWhereSystemException(ErrorCode code, ErrorLevel level)
public SiteWhereSystemException(ErrorCode code, ErrorLevel level, int httpResponseCode)
public SiteWhereSystemException(ErrorCode code, java.lang.Throwable cause, ErrorLevel level)
public ErrorCode getCode()
public void setCode(ErrorCode code)
code
- public ErrorLevel getLevel()
public void setLevel(ErrorLevel level)
level
- public int getHttpResponseCode()
public void setHttpResponseCode(int httpResponseCode)
httpResponseCode
- public boolean hasHttpResponseCode()