Class DefaultRestErrorResponse


  • public class DefaultRestErrorResponse
    extends java.lang.Object
    Represents a REST service error response. A service response is considered an error response when response HTTP status code is not within 2xx range.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultRestErrorResponse()
      No arg constructor is required for marshalling
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getErrorCode()  
      java.lang.String getMessage()  
      void setErrorCode​(java.lang.String errorCode)  
      void setMessage​(java.lang.String message)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • DefaultRestErrorResponse

        public DefaultRestErrorResponse()
        No arg constructor is required for marshalling
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
      • setMessage

        public void setMessage​(java.lang.String message)
      • getErrorCode

        public java.lang.String getErrorCode()
      • setErrorCode

        public void setErrorCode​(java.lang.String errorCode)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object