Apache Ignite C++
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
ignite::IgniteError Class Reference

Ignite error information. More...

#include <ignite_error.h>

Inheritance diagram for ignite::IgniteError:

Public Member Functions

 IgniteError ()
 Default constructor. More...
 
 IgniteError (const int32_t code)
 Create error with specific code. More...
 
 IgniteError (const int32_t code, const char *msg)
 Create error with specific code and message. More...
 
 IgniteError (const IgniteError &other)
 Copy constructor. More...
 
IgniteErroroperator= (const IgniteError &other)
 Assignment operator. More...
 
 ~IgniteError ()
 Destructor.
 
int32_t GetCode () const
 Get error code. More...
 
const char * GetText () const IGNITE_NO_THROW
 Get error message. More...
 
virtual const char * what () const IGNITE_NO_THROW
 Implementation of the standard std::exception::what() method. More...
 

Static Public Member Functions

static void ThrowIfNeeded (IgniteError &err)
 Throw an error if code is not IGNITE_SUCCESS. More...
 
static void SetError (const int jniCode, const char *jniCls, const char *jniMsg, IgniteError *err)
 Initializes IgniteError instance from the JNI error. More...
 

Static Public Attributes

static const int IGNITE_SUCCESS = 0
 Success. More...
 
static const int IGNITE_ERR_JVM_INIT = 1
 Failed to initialize JVM. More...
 
static const int IGNITE_ERR_JVM_ATTACH = 2
 Failed to attach to JVM. More...
 
static const int IGNITE_ERR_JVM_LIB_NOT_FOUND = 3
 JVM library is not found. More...
 
static const int IGNITE_ERR_JVM_LIB_LOAD_FAILED = 4
 Failed to load JVM library. More...
 
static const int IGNITE_ERR_JVM_NO_CLASSPATH = 5
 JVM classpath is not provided. More...
 
static const int IGNITE_ERR_JVM_NO_CLASS_DEF_FOUND = 6
 JVM error: no class definition found. More...
 
static const int IGNITE_ERR_JVM_NO_SUCH_METHOD = 7
 JVM error: no such method. More...
 
static const int IGNITE_ERR_MEMORY = 1001
 Memory operation error. More...
 
static const int IGNITE_ERR_BINARY = 1002
 Binary error. More...
 
static const int IGNITE_ERR_GENERIC = 2000
 Generic Ignite error. More...
 
static const int IGNITE_ERR_ILLEGAL_ARGUMENT = 2001
 Illegal argument passed. More...
 
static const int IGNITE_ERR_ILLEGAL_STATE = 2002
 Illegal state. More...
 
static const int IGNITE_ERR_UNSUPPORTED_OPERATION = 2003
 Unsupported operation. More...
 
static const int IGNITE_ERR_INTERRUPTED = 2004
 Thread has been interrup. More...
 
static const int IGNITE_ERR_CLUSTER_GROUP_EMPTY = 2005
 Cluster group is empty. More...
 
static const int IGNITE_ERR_CLUSTER_TOPOLOGY = 2006
 Cluster topology problem. More...
 
static const int IGNITE_ERR_COMPUTE_EXECUTION_REJECTED = 2007
 Compute execution rejected. More...
 
static const int IGNITE_ERR_COMPUTE_JOB_FAILOVER = 2008
 Compute job failover. More...
 
static const int IGNITE_ERR_COMPUTE_TASK_CANCELLED = 2009
 Compute task cancelled. More...
 
static const int IGNITE_ERR_COMPUTE_TASK_TIMEOUT = 2010
 Compute task timeout. More...
 
static const int IGNITE_ERR_COMPUTE_USER_UNDECLARED_EXCEPTION = 2011
 Compute user undeclared exception. More...
 
static const int IGNITE_ERR_CACHE = 2012
 Generic cache error. More...
 
static const int IGNITE_ERR_CACHE_LOADER = 2013
 Generic cache loader error. More...
 
static const int IGNITE_ERR_CACHE_WRITER = 2014
 Generic cache writer error. More...
 
static const int IGNITE_ERR_ENTRY_PROCESSOR = 2015
 Generic cache entry processor error. More...
 
static const int IGNITE_ERR_CACHE_ATOMIC_UPDATE_TIMEOUT = 2016
 Cache atomic update timeout. More...
 
static const int IGNITE_ERR_CACHE_PARTIAL_UPDATE = 2017
 Cache partial update. More...
 
static const int IGNITE_ERR_TX_OPTIMISTIC = 2018
 Transaction optimisitc exception. More...
 
static const int IGNITE_ERR_TX_TIMEOUT = 2019
 Transaction timeout. More...
 
static const int IGNITE_ERR_TX_ROLLBACK = 2020
 Transaction rollback. More...
 
static const int IGNITE_ERR_TX_HEURISTIC = 2021
 Transaction heuristic exception. More...
 
static const int IGNITE_ERR_AUTHENTICATION = 2022
 Authentication error. More...
 
static const int IGNITE_ERR_SECURITY = 2023
 Security error. More...
 
static const int IGNITE_ERR_UNKNOWN = -1
 Unknown error. More...
 

Detailed Description

Ignite error information.

Constructor & Destructor Documentation

ignite::IgniteError::IgniteError ( )

Default constructor.

Creates empty error. Code is IGNITE_SUCCESS and message is NULL.

ignite::IgniteError::IgniteError ( const int32_t  code)

Create error with specific code.

Message is set to NULL.

Parameters
codeError code.
ignite::IgniteError::IgniteError ( const int32_t  code,
const char *  msg 
)

Create error with specific code and message.

Parameters
codeError code.
msgMessage.
ignite::IgniteError::IgniteError ( const IgniteError other)

Copy constructor.

Parameters
otherOther instance.

Member Function Documentation

int32_t ignite::IgniteError::GetCode ( ) const

Get error code.

Returns
Error code.
const char * ignite::IgniteError::GetText ( ) const

Get error message.

Returns
Error message. Can be NULL.
IgniteError & ignite::IgniteError::operator= ( const IgniteError other)

Assignment operator.

Parameters
otherOther instance.
Returns
*this.
void ignite::IgniteError::SetError ( const int  jniCode,
const char *  jniCls,
const char *  jniMsg,
IgniteError err 
)
static

Initializes IgniteError instance from the JNI error.

Parameters
jniCodeError code.
jniClsError class.
jniMsgError message.
errError. Can not be NULL.
void ignite::IgniteError::ThrowIfNeeded ( IgniteError err)
static

Throw an error if code is not IGNITE_SUCCESS.

Parameters
errError.
const char * ignite::IgniteError::what ( ) const
virtual

Implementation of the standard std::exception::what() method.

Synonym for GetText() method.

Returns
Error message string.

Member Data Documentation

const int ignite::IgniteError::IGNITE_ERR_AUTHENTICATION = 2022
static

Authentication error.

const int ignite::IgniteError::IGNITE_ERR_BINARY = 1002
static

Binary error.

const int ignite::IgniteError::IGNITE_ERR_CACHE = 2012
static

Generic cache error.

const int ignite::IgniteError::IGNITE_ERR_CACHE_ATOMIC_UPDATE_TIMEOUT = 2016
static

Cache atomic update timeout.

const int ignite::IgniteError::IGNITE_ERR_CACHE_LOADER = 2013
static

Generic cache loader error.

const int ignite::IgniteError::IGNITE_ERR_CACHE_PARTIAL_UPDATE = 2017
static

Cache partial update.

const int ignite::IgniteError::IGNITE_ERR_CACHE_WRITER = 2014
static

Generic cache writer error.

const int ignite::IgniteError::IGNITE_ERR_CLUSTER_GROUP_EMPTY = 2005
static

Cluster group is empty.

const int ignite::IgniteError::IGNITE_ERR_CLUSTER_TOPOLOGY = 2006
static

Cluster topology problem.

const int ignite::IgniteError::IGNITE_ERR_COMPUTE_EXECUTION_REJECTED = 2007
static

Compute execution rejected.

const int ignite::IgniteError::IGNITE_ERR_COMPUTE_JOB_FAILOVER = 2008
static

Compute job failover.

const int ignite::IgniteError::IGNITE_ERR_COMPUTE_TASK_CANCELLED = 2009
static

Compute task cancelled.

const int ignite::IgniteError::IGNITE_ERR_COMPUTE_TASK_TIMEOUT = 2010
static

Compute task timeout.

const int ignite::IgniteError::IGNITE_ERR_COMPUTE_USER_UNDECLARED_EXCEPTION = 2011
static

Compute user undeclared exception.

const int ignite::IgniteError::IGNITE_ERR_ENTRY_PROCESSOR = 2015
static

Generic cache entry processor error.

const int ignite::IgniteError::IGNITE_ERR_GENERIC = 2000
static

Generic Ignite error.

const int ignite::IgniteError::IGNITE_ERR_ILLEGAL_ARGUMENT = 2001
static

Illegal argument passed.

const int ignite::IgniteError::IGNITE_ERR_ILLEGAL_STATE = 2002
static

Illegal state.

const int ignite::IgniteError::IGNITE_ERR_INTERRUPTED = 2004
static

Thread has been interrup.

const int ignite::IgniteError::IGNITE_ERR_JVM_ATTACH = 2
static

Failed to attach to JVM.

const int ignite::IgniteError::IGNITE_ERR_JVM_INIT = 1
static

Failed to initialize JVM.

const int ignite::IgniteError::IGNITE_ERR_JVM_LIB_LOAD_FAILED = 4
static

Failed to load JVM library.

const int ignite::IgniteError::IGNITE_ERR_JVM_LIB_NOT_FOUND = 3
static

JVM library is not found.

const int ignite::IgniteError::IGNITE_ERR_JVM_NO_CLASS_DEF_FOUND = 6
static

JVM error: no class definition found.

const int ignite::IgniteError::IGNITE_ERR_JVM_NO_CLASSPATH = 5
static

JVM classpath is not provided.

const int ignite::IgniteError::IGNITE_ERR_JVM_NO_SUCH_METHOD = 7
static

JVM error: no such method.

const int ignite::IgniteError::IGNITE_ERR_MEMORY = 1001
static

Memory operation error.

const int ignite::IgniteError::IGNITE_ERR_SECURITY = 2023
static

Security error.

const int ignite::IgniteError::IGNITE_ERR_TX_HEURISTIC = 2021
static

Transaction heuristic exception.

const int ignite::IgniteError::IGNITE_ERR_TX_OPTIMISTIC = 2018
static

Transaction optimisitc exception.

const int ignite::IgniteError::IGNITE_ERR_TX_ROLLBACK = 2020
static

Transaction rollback.

const int ignite::IgniteError::IGNITE_ERR_TX_TIMEOUT = 2019
static

Transaction timeout.

const int ignite::IgniteError::IGNITE_ERR_UNKNOWN = -1
static

Unknown error.

const int ignite::IgniteError::IGNITE_ERR_UNSUPPORTED_OPERATION = 2003
static

Unsupported operation.

const int ignite::IgniteError::IGNITE_SUCCESS = 0
static

Success.


The documentation for this class was generated from the following files: