#include <string>
#include <vector>
#include <cstdarg>
#include <boost/optional.hpp>
#include "rodsType.h"
#include "irods_exception.hpp"
#include <boost/assert.hpp>
#include <boost/format.hpp>
Go to the source code of this file.
|
#define | ERROR(code_, message_) ( irods::error( false, code_, message_, __FILE__, __LINE__, __PRETTY_FUNCTION__ ) ) |
|
#define | PASS(prev_error_) (irods::error( "", __FILE__, __LINE__, __PRETTY_FUNCTION__, prev_error_ ) ) |
|
#define | PASSMSG(message_, prev_error_) (irods::error( message_, __FILE__, __LINE__, __PRETTY_FUNCTION__, prev_error_ ) ) |
|
#define | CODE(code_) ( irods::error( true, code_, "", __FILE__, __LINE__, __PRETTY_FUNCTION__ ) ) |
|
#define | SUCCESS() ( irods::error( true, 0, "", __FILE__, __LINE__, __PRETTY_FUNCTION__ ) ) |
|
#define | ASSERT_ERROR(expr_, code_, format_, ...) (irods::assert_error(expr_, code_, __FILE__, __PRETTY_FUNCTION__, format_, __LINE__, ##__VA_ARGS__)) |
|
#define | ASSERT_PASS(prev_error_, format_, ...) (irods::assert_pass(prev_error_, __FILE__, __PRETTY_FUNCTION__, format_, __LINE__, ##__VA_ARGS__)) |
|
|
error | irods::assert_error (bool expr_, long long code_, const std::string &file_, const std::string &function_, const std::string &format_, int line_,...) |
|
error | irods::assert_pass (const error &_error, const std::string &_file, const std::string &_function, const std::string &_format, int line_,...) |
|
◆ ASSERT_ERROR
#define ASSERT_ERROR |
( |
|
expr_, |
|
|
|
code_, |
|
|
|
format_, |
|
|
|
... |
|
) |
| (irods::assert_error(expr_, code_, __FILE__, __PRETTY_FUNCTION__, format_, __LINE__, ##__VA_ARGS__)) |
◆ ASSERT_PASS
#define ASSERT_PASS |
( |
|
prev_error_, |
|
|
|
format_, |
|
|
|
... |
|
) |
| (irods::assert_pass(prev_error_, __FILE__, __PRETTY_FUNCTION__, format_, __LINE__, ##__VA_ARGS__)) |
◆ CODE
#define CODE |
( |
|
code_ | ) |
( irods::error( true, code_, "", __FILE__, __LINE__, __PRETTY_FUNCTION__ ) ) |
◆ ERROR
#define ERROR |
( |
|
code_, |
|
|
|
message_ |
|
) |
| ( irods::error( false, code_, message_, __FILE__, __LINE__, __PRETTY_FUNCTION__ ) ) |
◆ PASS
#define PASS |
( |
|
prev_error_ | ) |
(irods::error( "", __FILE__, __LINE__, __PRETTY_FUNCTION__, prev_error_ ) ) |
◆ PASSMSG
#define PASSMSG |
( |
|
message_, |
|
|
|
prev_error_ |
|
) |
| (irods::error( message_, __FILE__, __LINE__, __PRETTY_FUNCTION__, prev_error_ ) ) |
◆ SUCCESS
#define SUCCESS |
( |
| ) |
( irods::error( true, 0, "", __FILE__, __LINE__, __PRETTY_FUNCTION__ ) ) |