Class BmcException

    • Field Detail

      • OPC_REQUEST_ID_HEADER

        public static final String OPC_REQUEST_ID_HEADER
        Name of the header that contains the request id.
        See Also:
        Constant Field Values
    • Method Detail

      • getUnmodifiedMessage

        public String getUnmodifiedMessage()
        Returns the exception message, without adding additional troubleshooting information to it.
        Returns:
        unmodified exception message
      • getStatusCode

        public int getStatusCode()
        The HTTP status code.
      • getServiceCode

        public String getServiceCode()
        Service specific code returned.

        Null if the client timed out or failed to get a response from the service.

      • isTimeout

        public boolean isTimeout()
        Flag to indicate that the request timed out.

        Status code and service code should not be used if this is true.

      • getOpcRequestId

        public String getOpcRequestId()
        The opc-request-id header returned by the service that should be provided for support requests.

        If the client timed out or failed to get a response from the service, then this is the outbound request id, i.e. either the value for the OPC_REQUEST_ID_HEADER header set by the caller in an invocation callback, or otherwise a value automatically generated by the SDK.

      • isClientSide

        public boolean isClientSide()
        Flag to indicate that the exception originated from the client and not from the service.

        Status code and service code should not be used if this is true.

      • getServiceDetails

        public ServiceDetails getServiceDetails()
        Gets the service details of the failed Exception.

        null in the case of client-side exceptions

      • getOriginalMessage

        public String getOriginalMessage()
        Gets the original message of the failed Exception.

        null in the case of non-localized responses.

      • getOriginalMessageTemplate

        public String getOriginalMessageTemplate()
        Gets the original message template of the failed Exception.

        null in the case of non-localized responses.

      • getMessageArguments

        public Map<String,​String> getMessageArguments()
        Gets the template arguments of the failed Exception.

        null in the case of non-localized responses.

      • getAdditionalProperties

        public Map<String,​String> getAdditionalProperties()
        Gets the unknown attributes of the failed Exception.