userver: storages::postgres::Message Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts

Public Types

enum class  Severity {
  kLog ,
  kDebug ,
  kInfo ,
  kNotice ,
  kWarning ,
  kError ,
  kFatal ,
  kPanic
}
 

Public Member Functions

 Message (detail::ResultWrapperPtr)
 
std::string GetMessage () const
 
std::string GetPrimary () const
 
std::string GetDetail () const
 
Severity GetSeverity () const
 
std::string GetSeverityString () const
 
SqlState GetSqlState () const
 
std::string GetSchema () const
 
std::string GetTable () const
 
std::string GetColumn () const
 
std::string GetDatatype () const
 
std::string GetConstraint () const
 
logging::LogExtra GetLogExtra () const
 
void ThrowException () const
 Throw an exception according to the SQL code.
 

Static Public Member Functions

static Severity SeverityFromString (std::string_view)
 

Detailed Description

Definition at line 18 of file message.hpp.

Member Enumeration Documentation

◆ Severity

enum class storages::postgres::Message::Severity
strong

Definition at line 20 of file message.hpp.


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