EMS.ResourceAPI.EEMSHTTPError.RaiseDuplicate
Delphi
class procedure RaiseDuplicate(const AError: string = ''; const ADescription: string = ''); static;
C++
static void __fastcall RaiseDuplicate(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 EEMSHTTPDuplicateError exception with TCodes.Duplicate 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. RaiseDuplicate 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 | Duplicate |
ADescription
|
Description | The request is to create or rename an entity, with a name already in use |