A Status is used for communicating an API status code back to a client. A status
consists of multiple StatusItem. Most often a Status contains only one StatusItem.
For convenience, a message with parameters is formatted using standard
formatting patterns. If you want to display locale-specific messages in your
application, you should use the Status.getCode() as key for a resource bundle.
Returns the detail value for the given key of the first ERROR StatusItem or when there is no ERROR StatusItem, the first StatusItem in the overall list.
Returns the status code either of the first ERROR StatusItem or when there
is no ERROR StatusITEM, the first StatusItem in the overall list.
The status code is the unique identifier for the message and can be used by
client programs to check for a specific status and to generate a localized
message.
Returns the message either of the first ERROR StatusItem or when there
is no ERROR StatusItem, the first StatusItem in the overall list.
Note: Custom code and client programs must not use this message to identify
a specific status. The getCode() must be used for that purpose. The actual
message can change from release to release.
Returns the status code either of the first ERROR StatusItem or when there
is no ERROR StatusITEM, the first StatusItem in the overall list.
The status code is the unique identifier for the message and can be used by
client programs to check for a specific status and to generate a localized
message.
Returns the detail value for the given key of the first ERROR StatusItem
or when there is no ERROR StatusItem, the first StatusItem in the
overall list.
Parameters:
key - the key for the detail to return.
Returns:
the detail value for the given key of the first ERROR StatusItem
or when there is no ERROR StatusItem, the first StatusItem in the
overall list.
Returns the message either of the first ERROR StatusItem or when there
is no ERROR StatusItem, the first StatusItem in the overall list.
Note: Custom code and client programs must not use this message to identify
a specific status. The getCode() must be used for that purpose. The actual
message can change from release to release.
Returns:
the message either of the first ERROR StatusItem or when there
is no ERROR StatusItem, the first StatusItem in the overall list.