Apache Ignite C++
Classes | Namespaces | Macros | Variables
ignite_error.h File Reference
#include <stdint.h>
#include <exception>
#include <sstream>
#include <ignite/common/common.h>

Go to the source code of this file.

Classes

class  ignite::IgniteError
 Ignite error information. More...
 

Namespaces

 ignite
 Apache Ignite API.
 

Macros

#define IGNITE_ERROR_1(code, part1)
 
#define IGNITE_ERROR_2(code, part1, part2)
 
#define IGNITE_ERROR_3(code, part1, part2, part3)
 
#define IGNITE_ERROR_FORMATTED_1(code, msg, key1, val1)
 
#define IGNITE_ERROR_FORMATTED_2(code, msg, key1, val1, key2, val2)
 
#define IGNITE_ERROR_FORMATTED_3(code, msg, key1, val1, key2, val2, key3, val3)
 
#define IGNITE_ERROR_FORMATTED_4(code, msg, key1, val1, key2, val2, key3, val3, key4, val4)
 

Variables

const int ignite::java::IGNITE_JNI_ERR_SUCCESS = 0
 
const int ignite::java::IGNITE_JNI_ERR_GENERIC = 1
 
const int ignite::java::IGNITE_JNI_ERR_JVM_INIT = 2
 
const int ignite::java::IGNITE_JNI_ERR_JVM_ATTACH = 3
 

Detailed Description

Declares ignite::IgniteError class.

Macro Definition Documentation

◆ IGNITE_ERROR_1

#define IGNITE_ERROR_1 (   code,
  part1 
)
Value:
{ \
std::stringstream stream; \
stream << (part1); \
throw ignite::IgniteError(code, stream.str().c_str()); \
}

◆ IGNITE_ERROR_2

#define IGNITE_ERROR_2 (   code,
  part1,
  part2 
)
Value:
{ \
std::stringstream stream; \
stream << (part1) << (part2); \
throw ignite::IgniteError(code, stream.str().c_str()); \
}

◆ IGNITE_ERROR_3

#define IGNITE_ERROR_3 (   code,
  part1,
  part2,
  part3 
)
Value:
{ \
std::stringstream stream; \
stream << (part1) << (part2) << (part3); \
throw ignite::IgniteError(code, stream.str().c_str()); \
}

◆ IGNITE_ERROR_FORMATTED_1

#define IGNITE_ERROR_FORMATTED_1 (   code,
  msg,
  key1,
  val1 
)
Value:
{ \
std::stringstream stream; \
stream << msg << " [" << key1 << "=" << (val1) << "]"; \
throw ignite::IgniteError(code, stream.str().c_str()); \
}

◆ IGNITE_ERROR_FORMATTED_2

#define IGNITE_ERROR_FORMATTED_2 (   code,
  msg,
  key1,
  val1,
  key2,
  val2 
)
Value:
{ \
std::stringstream stream; \
stream << msg << " [" << key1 << "=" << (val1) << ", " << key2 << "=" << (val2) << "]"; \
throw ignite::IgniteError(code, stream.str().c_str()); \
}

◆ IGNITE_ERROR_FORMATTED_3

#define IGNITE_ERROR_FORMATTED_3 (   code,
  msg,
  key1,
  val1,
  key2,
  val2,
  key3,
  val3 
)
Value:
{ \
std::stringstream stream; \
stream << msg << " [" << key1 << "=" << (val1) << ", " << key2 << "=" << (val2) << ", " << key3 << "=" << (val3) << "]"; \
throw ignite::IgniteError(code, stream.str().c_str()); \
}

◆ IGNITE_ERROR_FORMATTED_4

#define IGNITE_ERROR_FORMATTED_4 (   code,
  msg,
  key1,
  val1,
  key2,
  val2,
  key3,
  val3,
  key4,
  val4 
)
Value:
{ \
std::stringstream stream; \
stream << msg << " [" << key1 << "=" << (val1) << ", " << key2 << "=" << (val2) << ", " << key3 << "=" << (val3) << ", " << key4 << "=" << (val4) << "]"; \
throw ignite::IgniteError(code, stream.str().c_str()); \
}
ignite::IgniteError
Ignite error information.
Definition: ignite_error.h:94