NCBI C++ ToolKit
|
Search Toolkit Book for CCgiRequestException
CCgiRequestException –. More...
#include <cgi/cgi_exception.hpp>
Public Types | |
enum | EErrCode { eCookie , eRead , eIndex , eEntry , eAttribute , eFormat , eData } |
Bad (malformed or missing) HTTP request components. More... | |
Public Types inherited from CCgiException | |
enum | EStatusCode { eStatusNotSet = 0 , e100_Continue = CRequestStatus::e100_Continue , e101_SwitchingProtocols = CRequestStatus::e101_SwitchingProtocols , e200_Ok = CRequestStatus::e200_Ok , e201_Created = CRequestStatus::e201_Created , e202_Accepted = CRequestStatus::e202_Accepted , e203_NonAuthInformation = CRequestStatus::e203_NonAuthInformation , e204_NoContent = CRequestStatus::e204_NoContent , e205_ResetContent = CRequestStatus::e205_ResetContent , e206_PartialContent = CRequestStatus::e206_PartialContent , e300_MultipleChoices = CRequestStatus::e300_MultipleChoices , e301_MovedPermanently = CRequestStatus::e301_MovedPermanently , e302_Found = CRequestStatus::e302_Found , e303_SeeOther = CRequestStatus::e303_SeeOther , e304_NotModified = CRequestStatus::e304_NotModified , e305_UseProxy = CRequestStatus::e305_UseProxy , e307_TemporaryRedirect = CRequestStatus::e307_TemporaryRedirect , e400_BadRequest = CRequestStatus::e400_BadRequest , e401_Unauthorized = CRequestStatus::e401_Unauthorized , e402_PaymentRequired = CRequestStatus::e402_PaymentRequired , e403_Forbidden = CRequestStatus::e403_Forbidden , e404_NotFound = CRequestStatus::e404_NotFound , e405_MethodNotAllowed = CRequestStatus::e405_MethodNotAllowed , e406_NotAcceptable = CRequestStatus::e406_NotAcceptable , e407_ProxyAuthRequired = CRequestStatus::e407_ProxyAuthRequired , e408_RequestTimeout = CRequestStatus::e408_RequestTimeout , e409_Conflict = CRequestStatus::e409_Conflict , e410_Gone = CRequestStatus::e410_Gone , e411_LengthRequired = CRequestStatus::e411_LengthRequired , e412_PreconditionFailed = CRequestStatus::e412_PreconditionFailed , e413_RequestEntityTooLarge = CRequestStatus::e413_RequestEntityTooLarge , e414_RequestURITooLong = CRequestStatus::e414_RequestURITooLong , e415_UnsupportedMediaType = CRequestStatus::e415_UnsupportedMediaType , e416_RangeNotSatisfiable = CRequestStatus::e416_RangeNotSatisfiable , e417_ExpectationFailed = CRequestStatus::e417_ExpectationFailed , e422_UnprocessableEntity = CRequestStatus::e422_UnprocessableEntity , e429_Too_Many_Requests = CRequestStatus::e429_Too_Many_Requests , e451_Unavailable_For_Legal_Reasons = CRequestStatus::e451_Unavailable_For_Legal_Reasons , e500_InternalServerError = CRequestStatus::e500_InternalServerError , e501_NotImplemented = CRequestStatus::e501_NotImplemented , e502_BadGateway = CRequestStatus::e502_BadGateway , e503_ServiceUnavailable = CRequestStatus::e503_ServiceUnavailable , e504_GatewayTimeout = CRequestStatus::e504_GatewayTimeout , e505_HTTPVerNotSupported = CRequestStatus::e505_HTTPVerNotSupported } |
HTTP status codes. More... | |
Public Member Functions | |
virtual const char * | GetErrCodeString (void) const override |
NCBI_EXCEPTION_DEFAULT (CCgiRequestException, CCgiException) | |
Public Member Functions inherited from CCgiException | |
CCgiException & | SetStatus (const SCgiStatus &status) |
EStatusCode | GetStatusCode (void) const |
string | GetStatusMessage (void) const |
NCBI_EXCEPTION_DEFAULT (CCgiException, CException) | |
Additional Inherited Members | |
Static Public Member Functions inherited from CCgiException | |
static string | GetStdStatusMessage (EStatusCode code) |
Protected Member Functions inherited from CCgiException | |
virtual void | x_Init (const CDiagCompileInfo &info, const string &message, const CException *prev_exception, EDiagSev severity) override |
Override method for initializing exception data. More... | |
virtual void | x_Assign (const CException &src) override |
Override method for copying exception data. More... | |
Exceptions to be used by CGI framework itself (see CCgiParseException) or the CGI application's request processing code in the cases when there is a problem is in the HTTP request itself (its header and/or body). The problem can be in the syntax as well as in the content.
Definition at line 197 of file cgi_exception.hpp.