com.supermap.services.rest

Class HttpError

  • java.lang.Object
    • com.supermap.services.rest.HttpError
  • All Implemented Interfaces:
    java.io.Serializable


    public class HttpError
    extends java.lang.Object
    implements java.io.Serializable
    

    ${services_rest_HttpError_Title}

    ${services_rest_HttpError_Description}

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      HttpError()
      ${services_rest_HttpError_constructor_HttpErrorByDefault_Title}
      HttpError(int code) 
      HttpError(int code, java.lang.String errorMsg)
      ${services_rest_HttpError_constructor_HttpErrorByCode_Title}
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int getCode()
      ${services_rest_HttpError_method_getCode_Title}
      java.lang.String getErrorMsg()
      ${services_rest_HttpError_method_getErrorMsg_Title}
      void setCode(int code)
      Deprecated. 
      use constructor functions instead
      void setErrorMsg(java.lang.String errorMsg)
      Deprecated. 
      use constructor functions instead
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpError

        public HttpError()
        

        ${services_rest_HttpError_constructor_HttpErrorByDefault_Title}

        ${services_rest_HttpError_constructor_HttpErrorByDefault_Description}

      • HttpError

        public HttpError(int code)
        
      • HttpError

        public HttpError(int code,
                 java.lang.String errorMsg)
        

        ${services_rest_HttpError_constructor_HttpErrorByCode_Title}

        ${services_rest_HttpError_constructor_HttpErrorByCode_Description}

        Parameters:
        code - ${services_rest_HttpError_constructor_HttpErrorByCode_param_code}
        errorMsg - ${services_rest_HttpError_constructor_HttpErrorByCode_param_errorMsg}
    • Method Detail

      • getCode

        public int getCode()
        

        ${services_rest_HttpError_method_getCode_Title}

        ${services_rest_HttpError_method_getCode_Description}

        Returns:
        ${services_rest_HttpError_method_getCode_return}
      • setCode

        @Deprecated
        public void setCode(int code)
        
        Deprecated. use constructor functions instead

        ${services_rest_HttpError_method_setCode_Title}

        ${services_rest_HttpError_method_setCode_Description}

        Parameters:
        code - ${services_rest_HttpError_method_setCode_param_code}
      • getErrorMsg

        public java.lang.String getErrorMsg()
        

        ${services_rest_HttpError_method_getErrorMsg_Title}

        ${services_rest_HttpError_method_getErrorMsg_Description}

        Returns:
        ${services_rest_HttpError_method_getErrorMsg_return}
      • setErrorMsg

        @Deprecated
        public void setErrorMsg(java.lang.String errorMsg)
        
        Deprecated. use constructor functions instead

        ${services_rest_HttpError_method_setErrorMsg_Title}

        ${services_rest_HttpError_method_setErrorMsg_Description}

        Parameters:
        errorMsg - ${services_rest_HttpError_method_setErrorMsg_param_errorMsg}