A Tt_status code can be read from a reply
via tt_message_status. This status defaults to TT_OK
, or can be set by the handler via tt_message_status_set. In extraordinary circumstances (such as no
matching handler) the ToolTalk service itself sets the message status.
In addition to the Tt_status values defined by the ToolTalk API, the overview reference page for each set of messages lists the error conditions defined for that set of messages. For each error condition, the overview reference page provides
Its name
Its integer value
A string in the “C” locale that explains the error condition
Since the ToolTalk Inter-Client Conventions (TICC) are a binary message interface, the integer and string are part of that binary interface; the name is not.
The string may be used as a key in the SUNW_TOOLTALK_INTERCLIENTCONVENTIONS
domain to retrieve a localized
explanation of the error condition. See dgettext(3).
The integer values of these status codes begin at 1537 (TT_ERR_APPFIRST + 1
). The first 151 codes
correspond to the system error list defined in intro(2).
A standard programming interface for these conventions that binds the name to the integer value does not yet exist.
The ToolTalk service allows an arbitrary status string to be included
in any reply. Since a standard localized string can be derived for each status
code, this status string may be used as a free-form elucidation of the status.
For example, if a request is failed with TT_DESKTOP_EPROTO
, the status string could be set to “The vtype of argument
2 was `string'; expected `integer'”. Handling tools should try to compose
the status string in the locale of the requestor. See the Get_Locale request.