Leosac  0.8.0
Open Source Access Control
Leosac::EntityNotFound Class Reference

#include <EntityNotFound.hpp>

+ Inheritance diagram for Leosac::EntityNotFound:
+ Collaboration diagram for Leosac::EntityNotFound:

Public Member Functions

template<typename T >
 EntityNotFound (const T &id, const std::string &type)
 Construct the exception from a type that can be converted to string using the std::to_string() call. More...
 
 EntityNotFound (const std::string &id, const std::string &type)
 
 EntityNotFound (const UUID &id, const std::string &type)
 
const std::string & entity_id () const
 
const std::string & entity_type () const
 
- 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 (const std::string &id, const std::string &type) const
 

Private Attributes

std::string entity_id_
 
std::string entity_type_
 

Additional Inherited Members

- Protected Attributes inherited from LEOSACException
std::string message_
 

Detailed Description

Definition at line 27 of file EntityNotFound.hpp.

Constructor & Destructor Documentation

◆ EntityNotFound() [1/3]

template<typename T >
Leosac::EntityNotFound::EntityNotFound ( const T &  id,
const std::string &  type 
)
inline

Construct the exception from a type that can be converted to string using the std::to_string() call.

Definition at line 35 of file EntityNotFound.hpp.

◆ EntityNotFound() [2/3]

EntityNotFound::EntityNotFound ( const std::string &  id,
const std::string &  type 
)

Definition at line 26 of file EntityNotFound.cpp.

◆ EntityNotFound() [3/3]

EntityNotFound::EntityNotFound ( const UUID id,
const std::string &  type 
)

Definition at line 33 of file EntityNotFound.cpp.

Member Function Documentation

◆ build_msg()

std::string EntityNotFound::build_msg ( const std::string &  id,
const std::string &  type 
) const
private

Definition at line 38 of file EntityNotFound.cpp.

◆ entity_id()

const std::string & EntityNotFound::entity_id ( ) const

Definition at line 47 of file EntityNotFound.cpp.

◆ entity_type()

const std::string & EntityNotFound::entity_type ( ) const

Definition at line 52 of file EntityNotFound.cpp.

Member Data Documentation

◆ entity_id_

std::string Leosac::EntityNotFound::entity_id_
private

Definition at line 50 of file EntityNotFound.hpp.

◆ entity_type_

std::string Leosac::EntityNotFound::entity_type_
private

Definition at line 51 of file EntityNotFound.hpp.


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