Transporting Application Error Codes and Exceptions傳輸應用程序錯誤代碼和異常
- For the error handling two different mechanisms are supported.
對于錯誤處理,支持兩種不同的機制. - All messages have a return code field to carry the return code. However, only responses (Message Types 0x80 and 0x81) use this field to carry a return code to the request (Message Type 0x00) they answer. All other messages set this field to 0x00.
所有消息都有一個return code字段來攜帶返回碼return code 。 但是,只有Response(消息類型0x80和0x81)使用此字段將return code返回給它們應答的request(消息類型0x00)。 所有其他消息都將此字段設置為0x00 - For more detailed errors the layout of the Error Message(Message Type 0x81) can carry specific fields for error handling, e.g. an Exception String. Error Messages are sent instead of Response Messages.
對于更詳細的錯誤,error消息(消息類型0x81)可以配置特定字段已進行error處理,例如,異常字符串。在這種情況下,發送error消息而不是response消息。 - This can be used to handle all different application errors that might occur in the server. In addition, problems with the communication medium or intermediate components (e.g. switches) may occur, which have to be handled e.g. by means of reliable transport.
這可用于處理服務器中可能發生的所有不同應用程序錯誤。 另外,可能出現通信介質或中間組件(例如,開關)的問題,這些問題必須處理,例如, 通過可靠的傳輸方式。
