| Modifier and Type | Field and Description |
|---|---|
| private final Map | additionalProperties
Map for optional/unknown attributes outside of DEX error codes https://confluence.oraclecorp.com/confluence/display/DEX/Error+Codes |
| private final boolean | isClientSide
Flag to indicate that the exception originated from the client and not from the service. |
| private final Map | messageArguments
The values to be substituted into the originalMessageTemplate, expressed as a string-to-string map. |
| public static final String | OPC_REQUEST_ID_HEADER
Name of the header that contains the request id. |
| private final String | opcRequestId
The opc-request-id header returned by the service that should be provided for support requests. |
| private final String | originalMessage
A human-readable error string in English. |
| private final String | originalMessageTemplate
Template in ICU MessageFormat for the human-readable error string in English, but without the values replaced. |
| private final String | serviceCode
Service specific code returned. |
| private final ServiceDetails | serviceDetails
Details about the service of the Exception |
| private final int | statusCode
The HTTP status code. |
| private final boolean | timeout
Flag to indicate that the request timed out. |
| Access | Constructor and Description |
|---|---|
| public | BmcException(int statusCode, String serviceCode, String message, String opcRequestId, Throwable cause)
|
| public | BmcException(int statusCode, String serviceCode, String message, String opcRequestId, Throwable cause, ServiceDetails serviceDetails)
|
| public | |
| public | BmcException(int statusCode, String serviceCode, String message, String opcRequestId, ServiceDetails serviceDetails)
|
| public | BmcException(int statusCode, String serviceCode, String message, String opcRequestId, ServiceDetails serviceDetails, String originalMessage, String originalMessageTemplate, Map<String, String> messageArguments)
|
| public | |
| public | |
| private | BmcException(String message, Throwable cause, int statusCode, String serviceCode, boolean timeout, String opcRequestId, boolean isClientSide, ServiceDetails serviceDetails)
|
| public | BmcException(String message, Throwable cause, int statusCode, String serviceCode, boolean timeout, String opcRequestId, boolean isClientSide, ServiceDetails serviceDetails, String originalMessage, String originalMessageTemplate, Map<String, String> messageArguments, Map<String, String> additionalProperties)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static BmcException | createClientSide(String message, Throwable cause, String opcRequestId, ServiceDetails serviceDetails)
|
| public Map | |
| public String | getMessage()
Overrides java. Returns the detail message string of this throwable. |
| public Map | |
| public String | getOpcRequestId()
The opc-request-id header returned by the service that should be provided for support requests. |
| public String | |
| public String | |
| public String | |
| public ServiceDetails | |
| public int | |
| public String | Returns: unmodified exception messageReturns the exception message, without adding additional troubleshooting information to it. |
| public boolean | isClientSide()
Flag to indicate that the exception originated from the client and not from the service. |
| public boolean |
| additionalProperties | back to summary |
|---|---|
| private final Map<String, String> additionalProperties Map for optional/unknown attributes outside of DEX error codes https://confluence.oraclecorp.com/confluence/display/DEX/Error+Codes | |
| isClientSide | back to summary |
|---|---|
| private final 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. | |
| messageArguments | back to summary |
|---|---|
| private final Map<String, String> messageArguments The values to be substituted into the originalMessageTemplate, expressed as a string-to-string map. Optional field in localized error responses. | |
| OPC_REQUEST_ID_HEADER | back to summary |
|---|---|
| public static final String OPC_REQUEST_ID_HEADER Name of the header that contains the request id. | |
| opcRequestId | back to summary |
|---|---|
| private final String opcRequestId 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 | |
| originalMessage | back to summary |
|---|---|
| private final String originalMessage A human-readable error string in English. Optional field in localized error responses. | |
| originalMessageTemplate | back to summary |
|---|---|
| private final String originalMessageTemplate Template in ICU MessageFormat for the human-readable error string in English, but without the values replaced. Optional field in localized error responses. | |
| serviceCode | back to summary |
|---|---|
| private final String serviceCode Service specific code returned. Null if the client timed out or failed to get a response from the service. | |
| serviceDetails | back to summary |
|---|---|
| private final ServiceDetails serviceDetails Details about the service of the Exception | |
| statusCode | back to summary |
|---|---|
| private final int statusCode The HTTP status code. | |
| timeout | back to summary |
|---|---|
| private final boolean timeout Flag to indicate that the request timed out. Status code and service code should not be used if this is true. | |
| BmcException | back to summary |
|---|---|
| public BmcException(int statusCode, String serviceCode, String message, String opcRequestId, Throwable cause) | |
| BmcException | back to summary |
|---|---|
| public BmcException(int statusCode, String serviceCode, String message, String opcRequestId, Throwable cause, ServiceDetails serviceDetails) | |
| BmcException | back to summary |
|---|---|
| public BmcException(int statusCode, String serviceCode, String message, String opcRequestId) | |
| BmcException | back to summary |
|---|---|
| public BmcException(int statusCode, String serviceCode, String message, String opcRequestId, ServiceDetails serviceDetails) | |
| BmcException | back to summary |
|---|---|
| public BmcException(int statusCode, String serviceCode, String message, String opcRequestId, ServiceDetails serviceDetails, String originalMessage, String originalMessageTemplate, Map<String, String> messageArguments) | |
| BmcException | back to summary |
|---|---|
| public BmcException(int statusCode, String serviceCode, String message, String opcRequestId, ServiceDetails serviceDetails, String originalMessage, String originalMessageTemplate, Map<String, String> messageArguments, Map<String, String> additionalProperties) | |
| BmcException | back to summary |
|---|---|
| public BmcException(boolean timeout, String message, Throwable cause, String opcRequestId) | |
| BmcException | back to summary |
|---|---|
| private BmcException(String message, Throwable cause, int statusCode, String serviceCode, boolean timeout, String opcRequestId, boolean isClientSide, ServiceDetails serviceDetails) | |
| BmcException | back to summary |
|---|---|
| public BmcException(String message, Throwable cause, int statusCode, String serviceCode, boolean timeout, String opcRequestId, boolean isClientSide, ServiceDetails serviceDetails, String originalMessage, String originalMessageTemplate, Map<String, String> messageArguments, Map<String, String> additionalProperties) | |
| BmcException | back to summary |
|---|---|
| public BmcException(String message, Throwable cause, int statusCode, String serviceCode, boolean timeout, String opcRequestId, boolean isClientSide, ServiceDetails serviceDetails, String originalMessage, String originalMessageTemplate, Map<String, String> messageArguments) | |
| createClientSide | back to summary |
|---|---|
| public static BmcException createClientSide(String message, Throwable cause, String opcRequestId, ServiceDetails serviceDetails) | |
| getAdditionalProperties | back to summary |
|---|---|
| public Map Gets the unknown attributes of the failed Exception. | |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Doc from java. Returns the detail message string of this throwable. | |
| getMessageArguments | back to summary |
|---|---|
| public Map Gets the template arguments of the failed Exception. null in the case of non-localized responses. | |
| getOpcRequestId | back to summary |
|---|---|
| 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 | |
| getOriginalMessage | back to summary |
|---|---|
| public String getOriginalMessage() Gets the original message of the failed Exception. null in the case of non-localized responses. | |
| getOriginalMessageTemplate | back to summary |
|---|---|
| public String getOriginalMessageTemplate() Gets the original message template of the failed Exception. null in the case of non-localized responses. | |
| getServiceCode | back to summary |
|---|---|
| public String getServiceCode() Service specific code returned. Null if the client timed out or failed to get a response from the service. | |
| getServiceDetails | back to summary |
|---|---|
| public ServiceDetails getServiceDetails() Gets the service details of the failed Exception. null in the case of client-side exceptions | |
| getStatusCode | back to summary |
|---|---|
| public int getStatusCode() The HTTP status code. | |
| getUnmodifiedMessage | back to summary |
|---|---|
| public String getUnmodifiedMessage() Returns the exception message, without adding additional troubleshooting information to it.
| |
| isClientSide | back to summary |
|---|---|
| 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. | |
| isTimeout | back to summary |
|---|---|
| public boolean isTimeout() Flag to indicate that the request timed out. Status code and service code should not be used if this is true. | |