Error

ErrorGetGenCode

Return the generic error code

Syntax

Signature
int         ErrorGetGenCode( const Error *error );

Return value

An `EG_...` constant of xdev-wtui-error.h, 0 when the error has no generic code, or 0 if the object is NULL.

Description

Generic codes let a program handle similar errors from different subsystems in the same way.

See also