Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2026.1

# Error::IsFatal()

Tests whether there has been a fatal error.

Virtual? | No |
Class | `Error` |
Arguments | None |
Returns | `int` | nonzero if error is fatal

## Notes

This function returns nonzero if `GetSeverity()` `== E_FATAL`.

## Example

The following code attempts to establish a connection to a server, and beeps if the severity is fatal:

    ClientApi client;
    Error e;

    client.SetPort( "magic:1666" );
    client.Init( &e );

    if ( e.IsFatal() ) printf( "Fatal error!%c\n", 13 );

Your search for returned results