Class HttpException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.supermap.services.rest.HttpException
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- InputUnsafeException, PreInputValidater.PreInputValidateFailedException
public class HttpException extends java.lang.RuntimeException${services_rest_HttpException_Title}
${services_rest_HttpException_Description}
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors 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}
-
Method Summary
Methods Modifier and Type Method and Description java.lang.StringgetErrorMsg()${services_rest_HttpException_method_getErrorMsg_Title}StatusgetErrorStatus()${services_rest_HttpException_method_getErrorStatus_Title}voidsetErrorStatus(Status errorStatus)Deprecated.Exception classes should be immutable, use constructor functions instead
-
-
-
Constructor Detail
-
HttpException
public HttpException()
${services_rest_HttpException_constructor_HttpExceptionByDefault_Title}
${services_rest_HttpException_constructor_HttpExceptionByDefault_Description}
-
HttpException
public HttpException(java.lang.String errorMsg)
${services_rest_HttpException_constructor_HttpExceptionByErrorMsg_Title}
${services_rest_HttpException_constructor_HttpExceptionByErrorMsg_Description}
- Parameters:
errorMsg- ${services_rest_HttpException_constructor_HttpExceptionByErrorMsg_param_errorMsg}
-
HttpException
public HttpException(Status errorStatus, java.lang.String errorMsg)${services_rest_HttpException_constructor_HttpExceptionByErrorStatus_Title}
${services_rest_HttpException_constructor_HttpExceptionByErrorStatus_Description}
- Parameters:
errorStatus- ${services_rest_HttpException_constructor_HttpExceptionByErrorStatus_param_errorStatus}errorMsg- ${services_rest_HttpException_constructor_HttpExceptionByErrorStatus_param_errorMsg}
-
HttpException
public HttpException(Status errorStatus, java.lang.String errorMsg, java.lang.Throwable cause)The Constructor.
- Parameters:
errorStatus- HTTP error status.errorMsg- exception corresponding to the error message.cause- The cause of the error.
-
-
Method Detail
-
getErrorMsg
public java.lang.String getErrorMsg()
${services_rest_HttpException_method_getErrorMsg_Title}
${services_rest_HttpException_method_getErrorMsg_Description}
- Returns:
- ${services_rest_HttpException_method_getErrorMsg_return}
-
getErrorStatus
public Status getErrorStatus()
${services_rest_HttpException_method_getErrorStatus_Title}
${services_rest_HttpException_method_getErrorStatus_Description}
- Returns:
- ${services_rest_HttpException_method_getErrorStatus_return}
-
setErrorStatus
@Deprecated public void setErrorStatus(Status errorStatus)
Deprecated. Exception classes should be immutable, use constructor functions instead${services_rest_HttpException_method_setErrorStatus_Title}
${services_rest_HttpException_method_setErrorStatus_Description}
- Parameters:
errorStatus- ${services_rest_HttpException_method_setErrorStatus_param_errorStatus}
-
-