com.supermap.services.rest

Class HttpException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • java.lang.RuntimeException
          • com.supermap.services.rest.HttpException
    • 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.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
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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}