---
name: "rtcGetErrorString"
section: "3"
platform: "linux"
package: "libembree-dev"
version: "4.3.3+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rtcGetErrorString"
---

# rtcGetErrorString(3)

### NAME

-

  ```
  rtcGetErrorString - returns a string representation
    of a given RTCError
  ```

### SYNOPSIS

-

  ```
  #include <embree4/rtcore.h>
  const char* rtcGetErrorString(RTCError code);
  ```

### DESCRIPTION

Returns a string representation for a `RTCError` error code. For example, for the `RTCError` RTC\_ERROR\_UNKNOWN this function will return the string “Unknown Error”. This is purely a convenience function for printing error information on the user side.

The returned strings should not be used for comparing different `RTCError` error codes or make other decisions based on the type of error that occurred. For such things only the `RTCError` enum values should be used.

### EXIT STATUS

Returns a string representation of a given `RTCError` error code.

### SEE ALSO

\[rtcGetDeviceError\]
