Leosac  0.8.0
Open Source Access Control
Leosac::Module::WebSockAPI::SessionAborted Class Reference

#include <Exceptions.hpp>

+ Inheritance diagram for Leosac::Module::WebSockAPI::SessionAborted:
+ Collaboration diagram for Leosac::Module::WebSockAPI::SessionAborted:

Public Member Functions

 SessionAborted ()
 
 SessionAborted (Auth::TokenPtr token)
 Aborted due to invalid/expired token. More...
 
- Public Member Functions inherited from LEOSACException
 LEOSACException (const std::string &message)
 
virtual ~LEOSACException ()
 
virtual const char * what () const noexcept final
 
const Leosac::Tools::Stacktracetrace () const
 Get the stacktrace associated with this exception. More...
 

Private Member Functions

std::string build_msg (Auth::TokenPtr token) const
 Build an exception message for when the reason of the aborted session is an expired token. More...
 

Additional Inherited Members

- Protected Attributes inherited from LEOSACException
std::string message_
 

Detailed Description

Definition at line 48 of file Exceptions.hpp.

Constructor & Destructor Documentation

◆ SessionAborted() [1/2]

SessionAborted::SessionAborted ( )

Definition at line 28 of file Exceptions.cpp.

◆ SessionAborted() [2/2]

SessionAborted::SessionAborted ( Auth::TokenPtr  token)

Aborted due to invalid/expired token.

Parameters
token
Returns

Definition at line 33 of file Exceptions.cpp.

Member Function Documentation

◆ build_msg()

std::string SessionAborted::build_msg ( Auth::TokenPtr  token) const
private

Build an exception message for when the reason of the aborted session is an expired token.

Definition at line 38 of file Exceptions.cpp.


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