---
name: "AuErrorEvent"
section: "3nas"
platform: "linux"
package: "libaudio-dev"
version: "1.9.4-9"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/AuErrorEvent"
---

# AuErrorEvent(3nas)

error event structure

## Name

**AuErrorEvent** - error event structure

## Structures

\#include \<audio/audiolib.h\>

typedef union \_AuEvent\
 {\
\
     . . .\
\
     **AuErrorEvent** *auerror*;\
\
     . . .\
 }**AuEvent**;

typedef struct \_AuErrorEvent\
 {\
\
     int *type*;\
\
     **AuUint32** *serial*;\
\
     **AuBool** *send\_event*;\
\
     **AuServer** \**server*;\
\
     **AuTime** *time*;\
\
     **AuID** *resourceid*;\
\
     unsigned char *error\_code*;\
\
     unsigned char *request\_code*;\
\
     unsigned char *minor\_code*;\
\
     union\
\
     {\
\
         **AuUint32** *l*\[4\];\
\
     }*data*;\
 }**AuErrorEvent**;

## Members

- *type*

  The event type. Error events are type 0.

- *serial*

  The serial number of the failed request.

- *send\_event*

  **AuTrue** if the event came from a **SendEvent** protocol request.

- *server*

  The connection to the audio server that the event was read from.

- *time*

  The server time in milliseconds when the event was generated.

- *resourceid*

  The resource ID or other value of the failed request.

- *error\_code*

  The error code of the failed request.

- *request\_code*

  The protocol major request code of the failed request.

- *minor\_code*

  The protocol minor request code of the failed request.

- *data*

  Never used?

## Description

Error events are sent to clients to alert them of non-fatal errors encountered while processing requests.

## See Also

**AuAnyEvent**, **AuElementNotifyEvent**, **AuGrabNotifyEvent**, **AuMonitorNotifyEvent**.

audiolib - **Network Audio System** C Language Interface
