Class Error

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class Error
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    Error information.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCode()
      Gets the code.
      java.lang.String getDetails()
      Gets the details.
      java.lang.String getMessage()
      Gets the message.
      java.lang.String getMessageCode()
      Gets the messageCode.
      • Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getCode

        public java.lang.String getCode()
        Gets the code. Error code of the REST Exception.
        Returns:
        the code
      • getMessageCode

        public java.lang.String getMessageCode()
        Gets the messageCode. Error message code of the REST Exception.
        Returns:
        the messageCode
      • getMessage

        public java.lang.String getMessage()
        Gets the message. Error message of the REST Exception. Error messages are derived base on the input locale of the REST request and the available Message catalogs. Dynamic fallback to 'us-english' is happening if no message catalog is available for the provided input locale.
        Returns:
        the message
      • getDetails

        public java.lang.String getDetails()
        Gets the details. Error details of the REST Exception.
        Returns:
        the details