drogon
C++14/17-based HTTP application framework
Loading...
Searching...
No Matches
Exception.h File Reference
#include <drogon/exports.h>
#include <functional>
#include <stdexcept>
#include <string>
Include dependency graph for Exception.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  drogon::orm::DrogonDbException
 Mixin base class to identify drogon-db-specific exception types. More...
class  drogon::orm::Failure
class  drogon::orm::BrokenConnection
 Exception class for lost or failed backend connection. More...
class  drogon::orm::SqlError
 Exception class for failed queries. More...
class  drogon::orm::InDoubtError
 "Help, I don't know whether transaction was committed successfully!" More...
class  drogon::orm::TransactionRollback
 The backend saw itself forced to roll back the ongoing transaction. More...
class  drogon::orm::SerializationFailure
 Transaction failed to serialize. Please retry it. More...
class  drogon::orm::StatementCompletionUnknown
 We can't tell whether our last statement succeeded. More...
class  drogon::orm::DeadlockDetected
 The ongoing transaction has deadlocked. Retrying it may help. More...
class  drogon::orm::InternalError
 Internal error in internal library. More...
class  drogon::orm::TimeoutError
 Timeout error in when executing the SQL statement. More...
class  drogon::orm::UsageError
 Error in usage of drogon orm library, similar to std::logic_error. More...
class  drogon::orm::ArgumentError
 Invalid argument passed to drogon orm lib, similar to std::invalid_argument. More...
class  drogon::orm::ConversionError
 Value conversion failed, e.g. when converting "Hello" to int. More...
class  drogon::orm::RangeError
 Something is out of range, similar to std::out_of_range. More...
class  drogon::orm::UnexpectedRows
 Query returned an unexpected number of rows. More...
class  drogon::orm::FeatureNotSupported
 Database feature not supported in current setup. More...
class  drogon::orm::DataException
 Error in data provided to SQL statement. More...
class  drogon::orm::IntegrityConstraintViolation
class  drogon::orm::RestrictViolation
class  drogon::orm::NotNullViolation
class  drogon::orm::ForeignKeyViolation
class  drogon::orm::UniqueViolation
class  drogon::orm::CheckViolation
class  drogon::orm::InvalidCursorState
class  drogon::orm::InvalidSqlStatementName
class  drogon::orm::InvalidCursorName
class  drogon::orm::SyntaxError
class  drogon::orm::UndefinedColumn
class  drogon::orm::UndefinedFunction
class  drogon::orm::UndefinedTable
class  drogon::orm::InsufficientPrivilege
class  drogon::orm::InsufficientResources
 Resource shortage on the server. More...
class  drogon::orm::DiskFull
class  drogon::orm::OutOfMemory
class  drogon::orm::TooManyConnections

Namespaces

namespace  drogon
 Drogon Test is a minimal effort test framework developed because the major C++ test frameworks doesn't handle async programs well. Drogon Test's syntax is inspired by both Google Test and Catch2.

Typedefs

using drogon::orm::DrogonDbExceptionCallback

Detailed Description

Definition of Drogon Db exception classes.

Copyright (c) 2003-2018, Jeroen T. Vermeulen.

See COPYING for copyright license. If you did not receive a file called COPYING with this source code, please notify the distributor of this mistake, or contact the author.

Author
An Tao

Copyright 2018, An Tao. All rights reserved. https://github.com/an-tao/drogon Use of this source code is governed by a MIT license that can be found in the License file.

Drogon

Typedef Documentation

◆ DrogonDbExceptionCallback

Initial value:
std::function<void(const DrogonDbException &)>
Mixin base class to identify drogon-db-specific exception types.
Definition Exception.h:51

Exceptions derived from this class are errors from PL/pgSQL procedures.