public class MindsphereException
extends Exception
implements Serializable
| Constructor and Description |
|---|
MindsphereException()
Constructs a new empty MindsphereException instance.
|
MindsphereException(String errorMessage)
Constructs a new MindsphereException with the specified errorMessage
|
MindsphereException(String errorMessage,
HttpStatus httpStatus)
Constructs a new MindsphereException with the specified errorMessage and
httpStatus.
|
MindsphereException(String errorMessage,
HttpStatus httpStatus,
Throwable exceptionCause)
Constructs a new MindsphereException with the specified errorMessage,
httpStatus and cause.
|
MindsphereException(String errorMessage,
String errorStatusCode)
Constructs a new MindsphereException with the specified errorMessage and
errorStatusCode
|
MindsphereException(String errorMessage,
String errorStatusCode,
HttpStatus httpStatus,
String logref)
Constructs a new MindsphereException with the specified errorMessage,
errorStatusCode, httpStatus, logref and cause.
|
MindsphereException(String errorMessage,
String errorStatusCode,
HttpStatus httpStatus,
String logref,
Throwable cause)
Constructs a new MindsphereException with the specified errorMessage,
errorStatusCode, httpStatus, logref and cause.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessage()
Returns the error message of the exception
|
String |
getErrorStatusCode()
Returns the error status code
|
HttpStatus |
getHttpStatus()
Returns the HTTP status of the exception
|
String |
getLogref()
Get the log reference for the exception
|
public MindsphereException(String errorMessage,
String errorStatusCode,
HttpStatus httpStatus,
String logref)
errorMessage - Error Message describing error encountered.errorStatusCode - Error Status Code encountered.httpStatus - Http Status encounteredlogref - logref of the errorpublic MindsphereException()
public MindsphereException(String errorMessage,
String errorStatusCode,
HttpStatus httpStatus,
String logref,
Throwable cause)
errorMessage - Error Message describing error encountered.errorStatusCode - Error Status Code encountered.httpStatus - Http Status encounteredlogref - logref of the errorcause - (Throwable)cause of the exceptionpublic MindsphereException(String errorMessage,
HttpStatus httpStatus)
errorMessage - Error Message describing error encountered.httpStatus - Http Status encounteredpublic MindsphereException(String errorMessage,
HttpStatus httpStatus,
Throwable exceptionCause)
errorMessage - Error Message describing error encountered.httpStatus - Http Status encounteredexceptionCause - (Throwable)cause of the exceptionpublic MindsphereException(String errorMessage,
String errorStatusCode)
errorMessage - Error Message describing error encountered.errorStatusCode - Error Status Code encountered.public MindsphereException(String errorMessage)
errorMessage - Error Message describing error encountered.public String getErrorStatusCode()
public String getErrorMessage()
public HttpStatus getHttpStatus()
public String getLogref()