userver: storages::postgres::ServerError< Base > Class Template Reference
Loading...
Searching...
No Matches
storages::postgres::ServerError< Base > Class Template Reference

#include <userver/storages/postgres/exceptions.hpp>

Detailed Description

template<typename Base>
class storages::postgres::ServerError< Base >

Error that was reported by PosgtreSQL server Contains the message sent by the server. Templated class because the errors can be both runtime and logic.

Definition at line 192 of file exceptions.hpp.

+ Inheritance diagram for storages::postgres::ServerError< Base >:

Public Member Functions

 ServerError (const Message &msg)
 
const MessageGetServerMessage () const
 
Message::Severity GetSeverity () const
 
SqlState GetSqlState () const
 

Constructor & Destructor Documentation

◆ ServerError()

template<typename Base >
storages::postgres::ServerError< Base >::ServerError ( const Message & msg)
inlineexplicit

Definition at line 194 of file exceptions.hpp.

Member Function Documentation

◆ GetServerMessage()

template<typename Base >
const Message & storages::postgres::ServerError< Base >::GetServerMessage ( ) const
inline

Definition at line 196 of file exceptions.hpp.

◆ GetSeverity()

template<typename Base >
Message::Severity storages::postgres::ServerError< Base >::GetSeverity ( ) const
inline

Definition at line 198 of file exceptions.hpp.

◆ GetSqlState()

template<typename Base >
SqlState storages::postgres::ServerError< Base >::GetSqlState ( ) const
inline

Definition at line 199 of file exceptions.hpp.


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