proton  0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Typedefs | Functions
error.h File Reference
#include <stdarg.h>

Go to the source code of this file.

Macros

#define PN_EOS   (-1)
#define PN_ERR   (-2)
#define PN_OVERFLOW   (-3)
#define PN_UNDERFLOW   (-4)
#define PN_STATE_ERR   (-5)
#define PN_ARG_ERR   (-6)
#define PN_TIMEOUT   (-7)
#define PN_INTR   (-8)

Typedefs

typedef struct pn_error_t pn_error_t

Functions

const char * pn_code (int code)
pn_error_tpn_error ()
void pn_error_free (pn_error_t *error)
void pn_error_clear (pn_error_t *error)
int pn_error_set (pn_error_t *error, int code, const char *text)
int pn_error_vformat (pn_error_t *error, int code, const char *fmt, va_list ap)
int pn_error_format (pn_error_t *error, int code, const char *fmt,...)
int pn_error_from_errno (pn_error_t *error, const char *msg)
int pn_error_code (pn_error_t *error)
const char * pn_error_text (pn_error_t *error)

Macro Definition Documentation

#define PN_ARG_ERR   (-6)
#define PN_EOS   (-1)
#define PN_ERR   (-2)
#define PN_INTR   (-8)
#define PN_OVERFLOW   (-3)
#define PN_STATE_ERR   (-5)
#define PN_TIMEOUT   (-7)
#define PN_UNDERFLOW   (-4)

Typedef Documentation

typedef struct pn_error_t pn_error_t

Function Documentation

const char* pn_code ( int  code)
pn_error_t* pn_error ( )
void pn_error_clear ( pn_error_t error)
int pn_error_code ( pn_error_t error)
int pn_error_format ( pn_error_t error,
int  code,
const char *  fmt,
  ... 
)
void pn_error_free ( pn_error_t error)
int pn_error_from_errno ( pn_error_t error,
const char *  msg 
)
int pn_error_set ( pn_error_t error,
int  code,
const char *  text 
)
const char* pn_error_text ( pn_error_t error)
int pn_error_vformat ( pn_error_t error,
int  code,
const char *  fmt,
va_list  ap 
)