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 200 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 202 of file exceptions.hpp.

Member Function Documentation

◆ GetServerMessage()

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

Definition at line 204 of file exceptions.hpp.

◆ GetSeverity()

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

Definition at line 206 of file exceptions.hpp.

◆ GetSqlState()

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

Definition at line 207 of file exceptions.hpp.


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