lgraph_exceptions

namespace lgraph_api
class BadRequestException : public exception
#include <lgraph_exceptions.h>

Public Functions

inline explicit BadRequestException(const std::string &err)
inline const char *what() const noexcept override

Private Members

std::string err_
class DBNotExistError : public InputError
#include <lgraph_exceptions.h>

Specified database does not exist, wrong directory?

Public Functions

inline explicit DBNotExistError(const std::string &msg = "The specified TuGraph DB does not exist.")
class InputError : public exception
#include <lgraph_exceptions.h>

User input error. Base class for a variety of input errors.

Subclassed by DBNotExistError, InvalidParameterError, UnauthorizedError

Public Functions

inline explicit InputError(const std::string &err)
inline const char *what() const noexcept override

Protected Attributes

std::string err_
class InternalErrorException : public exception
#include <lgraph_exceptions.h>

Public Functions

inline explicit InternalErrorException(const std::string &err)
inline const char *what() const noexcept override

Private Members

std::string err_
class InvalidForkError : public InvalidParameterError
#include <lgraph_exceptions.h>

ForkTxn called on a write transaction.

Public Functions

inline InvalidForkError()
class InvalidGalaxyError : public InvalidParameterError
#include <lgraph_exceptions.h>

Function called on an invalid Galaxy.

Public Functions

inline InvalidGalaxyError()
class InvalidGraphDBError : public InvalidParameterError
#include <lgraph_exceptions.h>

Function called on an invalid GraphDB.

Public Functions

inline InvalidGraphDBError()
class InvalidIteratorError : public InvalidParameterError
#include <lgraph_exceptions.h>

Function called on an invalid iterator.

Public Functions

inline InvalidIteratorError()
class InvalidParameterError : public InputError
#include <lgraph_exceptions.h>

An invalid parameter is passed.

Subclassed by InvalidForkError, InvalidGalaxyError, InvalidGraphDBError, InvalidIteratorError, InvalidTxnError

Public Functions

inline explicit InvalidParameterError(const std::string &msg = "Invalid parameter.")
class InvalidTxnError : public InvalidParameterError
#include <lgraph_exceptions.h>

Function called on an invalid transaction.

Public Functions

inline InvalidTxnError()
class IOError : public runtime_error
#include <lgraph_exceptions.h>

An i/o error.

Public Functions

inline explicit IOError(const std::string &msg = "IO Error.")
class OutOfRangeError : public range_error
#include <lgraph_exceptions.h>

Data out of range.

Public Functions

inline explicit OutOfRangeError(const std::string &err)
class TaskKilledException : public runtime_error
#include <lgraph_exceptions.h>

Task is being killed per user request or timeout.

Public Functions

inline TaskKilledException()
class TxnConflictError : public runtime_error
#include <lgraph_exceptions.h>

A conflict is detected when committing this transaction.

Public Functions

inline TxnConflictError()
class UnauthorizedError : public InputError
#include <lgraph_exceptions.h>

User not authorized to perform this action.

Public Functions

inline explicit UnauthorizedError(const std::string &msg = "Authentication failed.")
class WriteNotAllowedError : public runtime_error
#include <lgraph_exceptions.h>

Write operation is tried on a read-only GraphDB or read-only transaction.

Public Functions

inline explicit WriteNotAllowedError(const std::string &msg = "Access denied.")