C AMQP Protocol Engine API  0.5
proton/error.h File Reference
#include <proton/import_export.h>
#include <stdarg.h>
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#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)
#define PN_INPROGRESS   (-9)

Typedefs

typedef struct pn_error_t pn_error_t

Functions

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

Define Documentation

#define PN_ARG_ERR   (-6)
#define PN_EOS   (-1)
#define PN_ERR   (-2)
#define PN_INPROGRESS   (-9)
#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

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