Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

exc.h File Reference


Detailed Description

Public include file of the exceptions and messages module.

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Exception Stripping Flags

The following flag constants may be passed as the flags argument of sobj_exc_strip().

See sobj_exc_strip() for the documentation of these flags.

#define SOBJ_EXC_STRIP_SOURCE   (1)
#define SOBJ_EXC_STRIP_ARGS   (2)
#define SOBJ_EXC_STRIP_MODULE   (4)
#define SOBJ_EXC_STRIP_CLASS   (8)
#define SOBJ_EXC_STRIP_I18N   (16)
#define SOBJ_EXC_STRIP_CN   (32)
#define SOBJ_EXC_STRIP_ID   (64)
#define SOBJ_EXC_STRIP_LEVEL   (128)
#define SOBJ_EXC_STRIP_TYPE   (256)

Defines

#define sobj_exc_args_size(exc, arg_n)
 Macro for computing the buffer sizes required for calling sobj_exc_args().
#define sobj_exc_sourceref_size(exc)
 Macro for computing the buffer size required for calling sobj_exc_sourceref().
#define sobj_exc_info_size(exc, xcls_n, arg_n)
 Macro for computing the buffer size required for calling sobj_exc_info().

Functions

size_t sobj_exc_args (struct sobj *, int *, const char **, struct sobj **, char *, size_t)
 Get the argument keys and values from an exception or message object.
size_t sobj_exc_sourceref_to_string (struct sobj *, bool, char *, size_t)
 Convert a source reference from an exception or message object to a string.
size_t sobj_exc_to_string (struct sobj *, bool, char *, size_t)
 Create a string representation of an exception object.
size_t sobj_msg_to_string (struct sobj *, bool, char *, size_t)
 Create a string representation of a message object.
bool sobj_exc_xcls_match (const char *, const char *)
 Check if the specfied exception class matches the specfied class.
bool sobj_exc_match (struct sobj *, const char *)
 Check if an exception object matches the specfied exception class.
bool sobj_exc_match_exact (struct sobj *, const char *)
 Check if an exception object matches the specfied exception class.
bool sobj_exc_match_id (struct sobj *, const char *, const char *)
 Check if the specfied exception or message object matches the specfied exception/message ID.
size_t sobj_exc_sourceref (struct sobj *, const char **, const char **, int *, const char **, char *, size_t)
 Get the source reference from the specfied exception or message object.
size_t sobj_exc_info (struct sobj *, int *, const char **, const char **, int *, const char **, struct sobj **, char *, size_t)
 Extract the class, ID, and argument information from an exception object.
sobjsobj_exc_strip (struct sobj *, unsigned)
 Strip information from an exception or message object.
void sobj_exc_dump (struct sobj *)
 Dump a string representation of an exception object to the standard error stream.


Generated on Sat Jul 23 16:04:33 2005 for sobject by  doxygen 1.3.9.1