BmcException exception is thrown in response to failures from a REST endpoint. It
contains the status code of the HTTP response as well as an application code and message
describing the problem.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final Map | |
| private static final Logger | |
| private static final int | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| DEFAULT_ERROR_MESSAGES | back to summary |
|---|---|
| public static final Map<Integer, String> DEFAULT_ERROR_MESSAGES
| |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| MAX_RESPONSE_BUFFER_BYTES | back to summary |
|---|---|
| private static final int MAX_RESPONSE_BUFFER_BYTES | |
| OPC_REQUEST_ID_HEADER | back to summary |
|---|---|
| private static final String OPC_REQUEST_ID_HEADER | |
| ResponseHelper | back to summary |
|---|---|
| public ResponseHelper() | |
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final String | |
| private final String | |
| private final Map | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static ResponseHelper. | |
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Map | |
| public String | |
| public String | |
| public Map | |
| public String | |
| public String | |
| public int | |
| public void | |
| public String |
| additionalProperties | back to summary |
|---|---|
| private final Map<String, String> additionalProperties | |
| code | back to summary |
|---|---|
| private final String code | |
| message | back to summary |
|---|---|
| private final String message | |
| messageArguments | back to summary |
|---|---|
| private final Map<String, String> messageArguments | |
| originalMessage | back to summary |
|---|---|
| private final String originalMessage | |
| originalMessageTemplate | back to summary |
|---|---|
| private final String originalMessageTemplate | |
| ErrorCodeAndMessage | back to summary |
|---|---|
pack-priv ErrorCodeAndMessage(final String code, final String message, final String originalMessage, final String originalMessageTemplate, final Map<String, String> messageArguments)
| |
| builder | back to summary |
|---|---|
| public static ResponseHelper. | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAdditionalProperties | back to summary |
|---|---|
| public Map | |
| getCode | back to summary |
|---|---|
| public String getCode() | |
| getMessage | back to summary |
|---|---|
| public String getMessage() | |
| getMessageArguments | back to summary |
|---|---|
| public Map | |
| getOriginalMessage | back to summary |
|---|---|
| public String getOriginalMessage() | |
| getOriginalMessageTemplate | back to summary |
|---|---|
| public String getOriginalMessageTemplate() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setAdditionalProperties | back to summary |
|---|---|
public void setAdditionalProperties(String key, Object value)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private Map | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ResponseHelper. | |
| public ResponseHelper. | |
| public ResponseHelper. | |
| public ResponseHelper. | |
| public ResponseHelper. | |
| public ResponseHelper. | |
| public String |
| code | back to summary |
|---|---|
| private String code | |
| message | back to summary |
|---|---|
| private String message | |
| messageArguments | back to summary |
|---|---|
| private Map<String, String> messageArguments | |
| originalMessage | back to summary |
|---|---|
| private String originalMessage | |
| originalMessageTemplate | back to summary |
|---|---|
| private String originalMessageTemplate | |
| Builder | back to summary |
|---|---|
| pack-priv Builder() | |
| build | back to summary |
|---|---|
| public ResponseHelper. | |
| code | back to summary |
|---|---|
public ResponseHelper.
| |
| message | back to summary |
|---|---|
public ResponseHelper.
| |
| messageArguments | back to summary |
|---|---|
| public ResponseHelper. | |
| originalMessage | back to summary |
|---|---|
| public ResponseHelper. | |
| originalMessageTemplate | back to summary |
|---|---|
| public ResponseHelper. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |