public class HttpException
extends java.lang.RuntimeException
${services_rest_HttpException_Title}
${services_rest_HttpException_Description}
Constructor and Description |
---|
HttpException()
${services_rest_HttpException_constructor_HttpExceptionByDefault_Title}
|
HttpException(Status errorStatus, java.lang.String errorMsg)
${services_rest_HttpException_constructor_HttpExceptionByErrorStatus_Title}
|
HttpException(Status errorStatus, java.lang.String errorMsg, java.lang.Throwable cause)
The Constructor.
|
HttpException(java.lang.String errorMsg)
${services_rest_HttpException_constructor_HttpExceptionByErrorMsg_Title}
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorMsg()
${services_rest_HttpException_method_getErrorMsg_Title}
|
Status |
getErrorStatus()
${services_rest_HttpException_method_getErrorStatus_Title}
|
void |
setErrorStatus(Status errorStatus)
Deprecated.
Exception classes should be immutable, use constructor functions instead
|
public HttpException()
${services_rest_HttpException_constructor_HttpExceptionByDefault_Title}
${services_rest_HttpException_constructor_HttpExceptionByDefault_Description}
public HttpException(java.lang.String errorMsg)
${services_rest_HttpException_constructor_HttpExceptionByErrorMsg_Title}
${services_rest_HttpException_constructor_HttpExceptionByErrorMsg_Description}
errorMsg
- ${services_rest_HttpException_constructor_HttpExceptionByErrorMsg_param_errorMsg}public HttpException(Status errorStatus, java.lang.String errorMsg)
${services_rest_HttpException_constructor_HttpExceptionByErrorStatus_Title}
${services_rest_HttpException_constructor_HttpExceptionByErrorStatus_Description}
errorStatus
- ${services_rest_HttpException_constructor_HttpExceptionByErrorStatus_param_errorStatus}errorMsg
- ${services_rest_HttpException_constructor_HttpExceptionByErrorStatus_param_errorMsg}public HttpException(Status errorStatus, java.lang.String errorMsg, java.lang.Throwable cause)
The Constructor.
errorStatus
- HTTP error status.errorMsg
- exception corresponding to the error message.cause
- The cause of the error.public java.lang.String getErrorMsg()
${services_rest_HttpException_method_getErrorMsg_Title}
${services_rest_HttpException_method_getErrorMsg_Description}
public Status getErrorStatus()
${services_rest_HttpException_method_getErrorStatus_Title}
${services_rest_HttpException_method_getErrorStatus_Description}
@Deprecated public void setErrorStatus(Status errorStatus)
${services_rest_HttpException_method_setErrorStatus_Title}
${services_rest_HttpException_method_setErrorStatus_Description}
errorStatus
- ${services_rest_HttpException_method_setErrorStatus_param_errorStatus}