Class ExceptionResponse

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

    public class ExceptionResponse
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    Response body parameters in case of error situations.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ResponseContext getContext()
      Gets the context.
      java.util.List<Error> getErrors()
      Gets the errors.
      java.lang.String getStatusCode()
      Gets the statusCode.
      java.lang.String getTrace()
      Gets the trace.
      • 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

      • getContext

        public ResponseContext getContext()
        Gets the context. Context with key properties for problem determination.
        Returns:
        the context
      • getStatusCode

        public java.lang.String getStatusCode()
        Gets the statusCode. Error message code of the REST Exception.
        Returns:
        the statusCode
      • getErrors

        public java.util.List<Error> getErrors()
        Gets the errors. List of errors that occured.
        Returns:
        the errors
      • getTrace

        public java.lang.String getTrace()
        Gets the trace. Unique ID of the requst.
        Returns:
        the trace