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

C/C++ API Documentation | 2025.1

# Error::IsWarning()

Tests whether the error is a warning.

Virtual? | No |
Class | `Error` |
Arguments | None |
Returns | `int` | nonzero if the most severe error is a warning

## Notes

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

## Example

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

    ClientApi client;
    Error e;

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

    if ( e.IsWarning() ) printf( "Warning!%c\n", 13 );

Your search for returned results