Class ServiceErrorResponse


  • public class ServiceErrorResponse
    extends java.lang.Object
    Represents error response body to be sent back to the client
    • Constructor Summary

      Constructors 
      Constructor Description
      ServiceErrorResponse()
      No arg constructor is required for marshalling
      ServiceErrorResponse​(java.lang.String errorCode, java.lang.String message)  
    • 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

      • ServiceErrorResponse

        public ServiceErrorResponse()
        No arg constructor is required for marshalling
      • ServiceErrorResponse

        public ServiceErrorResponse​(java.lang.String errorCode,
                                    java.lang.String message)
    • 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