Query exception class.
More...
#include <Exception.h>
|
|
| QueryException () |
| | Creates a new instance.
|
| | QueryException (const std::string &mess) |
| | Creates a new instance.
|
| | QueryException (const sparksee_core::QueryError *core_error) |
| | Creates a new instance.
|
| | QueryException (const sparksee_core::CypherError &cypher_error) |
| | Creates a new instance.
|
|
virtual | ~QueryException () |
| | Destructor.
|
|
sparksee::gdb::int32_t | GetOffset () |
| | Get thhe Offset in the query that may have triggered the error.
|
| const std::string & | Message () const |
| | Gets the message of the exception.
|
| void | SetMessage (const std::string &mess) |
| | Sets the message of the exception.
|
|
|
sparksee::gdb::int32_t | m_offset |
| | The Offset in the query that triggered the error.
|
|
std::string | message |
| | Message of the exception.
|
Query exception class.
- Author
- Sparsity Technologies http://www.sparsity-technologies.com
◆ QueryException() [1/3]
| QueryException::QueryException |
( |
const std::string & | mess | ) |
|
Creates a new instance.
- Parameters
-
| mess | [in] Message of the exception. |
◆ QueryException() [2/3]
| QueryException::QueryException |
( |
const sparksee_core::QueryError * | core_error | ) |
|
Creates a new instance.
- Parameters
-
| core_error | [in] Dexcore SQLError. |
◆ QueryException() [3/3]
| QueryException::QueryException |
( |
const sparksee_core::CypherError & | cypher_error | ) |
|
Creates a new instance.
- Parameters
-
| core_error | [in] Dexcore SQLError. |
◆ Message()
| const std::string & Exception::Message |
( |
| ) |
const |
|
inherited |
Gets the message of the exception.
It should be called GetMessage but this is not possible because of a macro defined in Windows.
- Returns
- The message of the exception.
◆ SetMessage()
| void Exception::SetMessage |
( |
const std::string & | mess | ) |
|
|
inherited |
Sets the message of the exception.
- Parameters
-
◆ ThrowError()
| void Error::ThrowError |
( |
int32_t | coreErrorCode | ) |
|
|
staticinherited |
Throws a new Error instance from a sparksee_core error code.
- Parameters
-
| coreErrorCode | [in] Sparkseecore error code. |
- Returns
- Depending on the given sparksee_core error, this will throw an Error instance of an specific Error subclass instance.
The documentation for this class was generated from the following file: