> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionIso11783ILtimOnError

[Open topic with navigation](../../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/ISO11783/ISOInteractionLayer/Functions/CAPLfunctionIso11783ILtimOnError.md)

[CAPL Functions](../../../CAPLfunctions.md) » [ISO11783](../../CAPLfunctionsISO11783Overview.md) » [ISO11783 Interaction Layer](../CAPLfunctionsISOILOverview.md) » Iso11783IL\_TIMOnError

# Iso11783IL\_TIMOnError

[Valid for](../../../../Shared/FeatureAvailability.md): CANoe DE • CANoe4SW DE

## Function Syntax

```plaintext theme={null}
void Iso11783IL_TIMOnError(long errorCode, dword addParam)
```

## Description

This callback function is called from the ISO11783 IL if an error occurred while TIM nodes are simulated.

## Parameters

* **errorCode**: Current [error code](../../../CAPLfunctionsISOj1939ErrorCodes.md).
* **addParam**: Additional parameter depending on the error code.

## Return Values

* **0**: Property has been set successfully
* **\< 0**: An error has occurred, see [error codes](../../../CAPLfunctionsISOj1939ErrorCodes.md)

## Example

```plaintext theme={null}
void Iso11783IL_TIMOnError( long errorCode, dword addParam )
{
  char buffer[256];
  Iso11783IL_GetLastErrorText ( elCount(buffer), buffer);
  write( "Iso11783IL_TIMOnError: Error %i (%f): %s", errorCode,timeNowFloat()/100000.0, buffer );
}
```
