#include <toolbox/util/Exception.hpp>
Definition at line 45 of file Exception.hpp.
 
◆ Exception() [1/6]
  
  | 
        
          | toolbox::util::Exception::Exception | ( | std::error_code | ec = std::error_code() | ) |  |  | explicit | 
 
 
◆ Exception() [2/6]
      
        
          | toolbox::util::Exception::Exception | ( | int | err, | 
        
          |  |  | const std::error_category & | ecat | 
        
          |  | ) |  |  | 
      
 
 
◆ Exception() [3/6]
      
        
          | toolbox::util::Exception::Exception | ( | std::error_code | ec, | 
        
          |  |  | std::string_view | what | 
        
          |  | ) |  |  | 
      
 
 
◆ Exception() [4/6]
      
        
          | toolbox::util::Exception::Exception | ( | int | err, | 
        
          |  |  | const std::error_category & | ecat, | 
        
          |  |  | std::string_view | what | 
        
          |  | ) |  |  | 
      
 
 
◆ ~Exception()
  
  | 
        
          | toolbox::util::Exception::~Exception | ( |  | ) |  |  | overridedefault | 
 
 
◆ Exception() [5/6]
◆ Exception() [6/6]
  
  | 
        
          | toolbox::util::Exception::Exception | ( | Exception && |  | ) |  |  | defaultnoexcept | 
 
 
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ to_json() [1/3]
  
  | 
        
          | void toolbox::util::Exception::to_json | ( | std::ostream & | os, |  
          |  |  | int | code, |  
          |  |  | const char * | message |  
          |  | ) |  |  |  | static | 
 
Format exception as a OpenAPI JSON response message. 
- Parameters
- 
  
    | os | The output stream. |  | code | The error code. |  | message | The error Message. |  
 
Definition at line 50 of file Exception.cpp.
 
 
◆ to_json() [2/3]
Format exception as a OpenAPI JSON response message. 
- Parameters
- 
  
    | os | The output stream. |  | code | The error code. |  | message | The error Message. |  
 
Definition at line 71 of file Exception.hpp.
 
 
◆ to_json() [3/3]
  
  | 
        
          | void toolbox::util::Exception::to_json | ( | std::ostream & | os | ) | const |  | inline | 
 
Format exception as a OpenAPI JSON response message. 
- Parameters
- 
  
  
Definition at line 78 of file Exception.hpp.
Referenced by to_json().
 
 
◆ code()
  
  | 
        
          | const std::error_code & toolbox::util::Exception::code | ( |  | ) | const |  | inlinenoexcept | 
 
 
The documentation for this class was generated from the following files: