---
name: "icetGetError"
section: "3"
platform: "linux"
package: "paraview"
version: "5.13.2+dfsg-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/icetGetError"
---

# icetGetError(3)

## NAME

**icetGetError -- return the last error condition.**

## Synopsis

\#include \<IceT.h\>

| | | |
| --- | --- | --- |
| GLenum **icetGetError**( | void | ); |

## Description

Retrieves the first error or warning condition that occurred since the last call to **icetGetError** or since program startup, whichever happened last.

Once an error condition has been retrieved with **icetGetError**, the error condition is reset to no error and cannot be retrieved again.

## Return Value

One of the following flags will be returned:

- **ICET\_INVALID\_VALUE**

   An inappropriate value has been passed to a function.

- **ICET\_INVALID\_OPERATION**

   An inappropriate function has been called.

- **ICET\_OUT\_OF\_MEMORY**

   **IceT** has ran out of memory for buffer space.

- **ICET\_BAD\_CAST**

   A function has been passed a value of the wrong type.

- **ICET\_INVALID\_ENUM**

   A function has been passed an invalid constant.

- **ICET\_SANITY\_CHECK\_FAIL**

   An internal error (or warning) has occurred.

- **ICET\_NO\_ERROR**

   No error has been raised since the last call to **icetGetError**.

## Bugs

It is not possible to tell if the returned value was caused by an error or a warning.

## Notes

The error value is *not* context dependent.

## Copyright

Copyright (C)2003 Sandia Corporation

Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.

This source code is released under the New BSD License.

## See Also

[*icetDiagnostics*(3)](/icetDiagnostics/3.md)
