Internet Direct (Indy) Version 9.0.2 Beta
EIdHTTPProtocolException.CreateError
Constructor for the exception instance.

constructor CreateError(const anErrCode: Integer; const asReplyMessage: string; const asErrorMessage: String); virtual;
Parameters
const anErrCode: Integer
Numeric error code from the HTTP response.

const asReplyMessage: string
General description of the error.

const asErrorMessage: String
Context specific text for the error message.

Description
CreateError is the constructor for the exception. CreateError calls the inherited CreateError method using the anErrCode and asReplyMessage parameters. CreateError also assigns the value in asErrorMessage to the ErrorMessage property prior to raising the exception.