SOAP exception. More...
#include <Exception.h>
Public Member Functions | |
HTTPException (size_t statusCode, const String &text, const fs::path &file=std::string(), int line=0, const String &description=String()) DOESNT_THROW | |
HTTPException (const HTTPException &other)=default | |
Copy constructor. More... | |
size_t | statusCode () const |
String | statusText () const |
Public Member Functions inherited from sptk::Exception | |
Exception (const String &text, const fs::path &file=std::string(), int line=0, const String &description=String()) DOESNT_THROW | |
Constructor. More... | |
const char * | what () const DOESNT_THROW override |
Returns complete text of exception. | |
String | message () const |
Returns exception message without file name, line number, or description. | |
String | file () const |
Returns exception file name. | |
int | line () const |
Returns exception line number. | |
String | description () const |
Returns exception description. | |
Static Public Member Functions | |
static String | httpResponseStatus (size_t statusCode) |
SOAP exception.
Thrown every time when SOAP fault occurs.
sptk::HTTPException::HTTPException | ( | size_t | statusCode, |
const String & | text, | ||
const fs::path & | file = std::string() , |
||
int | line = 0 , |
||
const String & | description = String() |
||
) |
Constructor
statusCode | The HTTP status |
text | The exception text |
file | The file where exception occurs |
line | The line number in the file where exception occurs |
description | The optional description information |
|
default |
Copy constructor.
other | Other exception object |
|
static |
Return standard HTTP response status text for status code
statusCode |
|
inline |
Get HTTP status code
|
inline |
Get HTTP status text