> ## 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.

# CAPLfunctionIso11783ILPDDOnError

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

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

# Iso11783IL\_PDDOnError (Callback)

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

## Function Syntax

```plaintext theme={null}
void Iso11783IL_PDDOnError( long errorCode, dword param );
```

## Description

This function can be implemented in the CAPL program. The function is called up by the interaction layer when an error occurs.

## Parameters

* **errorCode**: [error code](../../../CAPLfunctionsISOj1939ErrorCodes.md)
* **param**: additional parameter, dependent on the error code

## Return Values

—

## Example

```plaintext theme={null}
void Iso11783IL_PDDOnError( LONG errorCode, LONG addParam )
{
  char buffer[256];
  Iso11783IL_GetLastErrorText ( elCount(buffer), buffer);
  write( "ERROR: %s", buffer );
}
```
