EMS.ResourceAPI.EEMSHTTPError.RaiseBadRequest

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure RaiseBadRequest(const AError: string = ''; const ADescription: string = ''); static;

C++

static void __fastcall RaiseBadRequest(const System::UnicodeString AError = System::UnicodeString(), const System::UnicodeString ADescription = System::UnicodeString());

Properties

Type Visibility Source Unit Parent
procedure
function
public
EMS.ResourceAPI.pas
EMS.ResourceAPI.hpp
EMS.ResourceAPI EEMSHTTPError

Description

Raises an EEMSHTTPBadRequestError exception with TCodes.BadRequest as error code and the specified error name and error description.

The following table shows the default values for the Error and Description properties of the exception. RaiseBadRequest uses the values in the table below if you omit the AError or ADescription parameters, or if you pass an empty string as their value.

Parameter Property Default Value
AError Error Bad request
ADescription Description The request has unexpected or missing query parameters, url segments or request body

See Also