All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros
as_error.h File Reference
#include <aerospike/as_std.h>
#include <aerospike/as_status.h>
#include <aerospike/as_string.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
+ Include dependency graph for as_error.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  as_error
 

Macros

#define AS_ERROR_MESSAGE_MAX_LEN   (AS_ERROR_MESSAGE_MAX_SIZE - 1)
 
#define AS_ERROR_MESSAGE_MAX_SIZE   1024
 
#define as_error_set_message(__err, __code, __msg)   as_error_setall( __err, __code, __msg, __func__, __FILE__, __LINE__ );
 
#define as_error_update(__err, __code, __fmt,...)   as_error_setallv( __err, __code, __func__, __FILE__, __LINE__, __fmt, ##__VA_ARGS__ );
 

Macro Definition Documentation

#define AS_ERROR_MESSAGE_MAX_LEN   (AS_ERROR_MESSAGE_MAX_SIZE - 1)

The maximum string length of as_error.message

Definition at line 47 of file as_error.h.

#define AS_ERROR_MESSAGE_MAX_SIZE   1024

The size of as_error.message

Definition at line 40 of file as_error.h.

#define as_error_set_message (   __err,
  __code,
  __msg 
)    as_error_setall( __err, __code, __msg, __func__, __FILE__, __LINE__ );

Set all as_error fields and default in_doubt to false. Variable arguments are not accepted.

Definition at line 150 of file as_error.h.

#define as_error_update (   __err,
  __code,
  __fmt,
  ... 
)    as_error_setallv( __err, __code, __func__, __FILE__, __LINE__, __fmt, ##__VA_ARGS__ );

Set all as_error fields and default in_doubt to false. Variable arguments are accepted.

Definition at line 142 of file as_error.h.