Simple C Expat Wrapper (SCEW)  1.1.7
Files | Enumerations | Functions
Codes and descriptions

SCEW internal error codes and associated descriptions. More...

Files

file  error.h
 SCEW error handling functions.
 

Enumerations

enum  scew_error {
  scew_error_none, scew_error_no_memory, scew_error_io, scew_error_hook,
  scew_error_expat, scew_error_internal, scew_error_unknown
}
 This is the type declaration of the SCEW error. More...
 

Functions

SCEW_API scew_error scew_error_code (void)
 Returns the SCEW internal error code. More...
 
SCEW_API XML_Char const * scew_error_string (scew_error code)
 Returns a string describing the given internal SCEW error code. More...
 

Detailed Description

SCEW internal error codes and associated descriptions.

Enumeration Type Documentation

enum scew_error

This is the type declaration of the SCEW error.

That is, an enumeration of all SCEW possible errors.

Enumerator
scew_error_none 

No error has occured.

scew_error_no_memory 

No more memory available.

scew_error_io 

General Input/Output error.

scew_error_hook 

Hook returned error.

scew_error_expat 

Expat parser error.

scew_error_internal 

Internal SCEW error.

scew_error_unknown 

end of list marker

Function Documentation

SCEW_API scew_error scew_error_code ( void  )

Returns the SCEW internal error code.

If the error code returned is scew_error_expat it means that an internal Expat error has occurred, so you will probably want to check Expat error using scew_error_expat_code and scew_error_expat_string.

Returns
the current internal SCEW error code, if any.
SCEW_API XML_Char const* scew_error_string ( scew_error  code)

Returns a string describing the given internal SCEW error code.

Returns
the associated string for the given error code.