EMS.ResourceAPI.EEMSHTTPError.RaiseUnauthorized
Delphi
class procedure RaiseUnauthorized(const AError: string = ''; const ADescription: string = ''); static;
C++
static void __fastcall RaiseUnauthorized(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 EEMSHTTPUnauthorizedError exception with TCodes.Unauthorized 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. RaiseUnauthorized 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 | Unauthorized request |
ADescription
|
Description | The credentials of the request are not authorized for the requested operation. |