![]() |
![]() |
![]() |
Camel Reference Manual | ![]() |
---|---|---|---|---|
enum ExceptionId; struct CamelException; #define CAMEL_EXCEPTION_INITIALISER CamelException* camel_exception_new (void); void camel_exception_free (CamelException *ex); void camel_exception_init (CamelException *ex); void camel_exception_clear (CamelException *ex); void camel_exception_set (CamelException *ex, ExceptionId id, const char *desc); void camel_exception_setv (CamelException *ex, ExceptionId id, const char *format, ...); void camel_exception_xfer (CamelException *ex_dst, CamelException *ex_src); ExceptionId camel_exception_get_id (CamelException *ex); const char* camel_exception_get_description (CamelException *ex); #define camel_exception_is_set (ex)
struct CamelException { /* do not access the fields directly */ ExceptionId id; char *desc; };
void camel_exception_set (CamelException *ex, ExceptionId id, const char *desc);
|
|
|
|
|
void camel_exception_setv (CamelException *ex, ExceptionId id, const char *format, ...);
|
|
|
|
|
|
|
void camel_exception_xfer (CamelException *ex_dst, CamelException *ex_src);
|
|
|
const char* camel_exception_get_description (CamelException *ex);
|
|
Returns : |