Skip to main content

SomeIpGetLastError

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long SomeIpGetLastError();

Description

This function can be used to check whether the last called function of SOME/IP IL has been successfully executed. The call of this function does not reset the saved error. In the event of an error, a detailed error description can be read out using the SomeIpGetLastErrorText function.

Parameters

Return Values

  • 0: The last called function was successfully executed
  • >0: Error code

Example

long retVal;

// resume sending messages
SomeIpILControlResume();

// check if last function was executed correct
if((retVal = SomeIpGetLastError()) != 0)
{
  write("SOME/IP IL error occured: Error code: %d", retVal);
} // if
See Also