29#include <sptk5/Strings.h> 
   30#include <sptk5/sptk.h> 
   37#define DOESNT_THROW noexcept 
   39#define DOESNT_THROW throw() 
   90    explicit Exception(
const String& text, 
const fs::path& file = std::string(), 
int line = 0, 
const String& description = 
String()) DOESNT_THROW;
 
   95    const 
char* what() const DOESNT_THROW override;
 
  244    size_t statusCode()
 const 
  274#define throwException(msg)                                   \ 
  276        std::stringstream err;                                \ 
  278        throw sptk::Exception(err.str(), __FILE__, __LINE__); \ 
  284#define throwTimeoutException(msg)                                   \ 
  286        std::stringstream err;                                       \ 
  288        throw sptk::TimeoutException(err.str(), __FILE__, __LINE__); \ 
  294#define throwConnectionException(msg)                                   \ 
  296        std::stringstream err;                                          \ 
  298        throw sptk::ConnectionException(err.str(), __FILE__, __LINE__); \ 
  304#define throwDatabaseException(msg)                                   \ 
  306        std::stringstream err;                                        \ 
  308        throw sptk::DatabaseException(err.str(), __FILE__, __LINE__); \ 
  314#define throwSOAPException(msg)                                   \ 
  316        std::stringstream err;                                    \ 
  318        throw sptk::SOAPException(err.str(), __FILE__, __LINE__); \ 
Connection exception.
Definition: Exception.h:148
 
ConnectionException(const String &text, const fs::path &file=std::string(), int line=0, const String &description=String()) DOESNT_THROW
 
Database operation exception.
Definition: Exception.h:172
 
DatabaseException(const String &text, const fs::path &file=std::string(), int line=0, const String &description=String()) DOESNT_THROW
Constructor.
 
SPTK generic exception class.
Definition: Exception.h:56
 
Exception(const String &text, const fs::path &file=std::string(), int line=0, const String &description=String()) DOESNT_THROW
Constructor.
 
SOAP exception.
Definition: Exception.h:220
 
static String httpResponseStatus(size_t statusCode)
 
String statusText() const
Definition: Exception.h:253
 
HTTPException(size_t statusCode, const String &text, const fs::path &file=std::string(), int line=0, const String &description=String()) DOESNT_THROW
 
SOAP exception.
Definition: Exception.h:196
 
SOAPException(const String &text, const fs::path &file=std::string(), int line=0, const String &description=String()) DOESNT_THROW
 
Timeout exception.
Definition: Exception.h:124
 
TimeoutException(const String &text, const fs::path &file=std::string(), int line=0, const String &description=String()) DOESNT_THROW