SOME/IP-Transporting Application Error Codes and Exceptions

本文阐述了在服务器中处理各种应用程序错误的两种机制。一种是通过响应消息携带返回码,另一种是在遇到详细错误时发送错误消息,包含异常字符串。此外,还讨论了如何处理通信介质或中间组件的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.
    这可用于处理服务器中可能发生的所有不同应用程序错误。 另外,可能出现通信介质或中间组件(例如,开关)的问题,这些问题必须处理,例如, 通过可靠的传输方式。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值