EROException

Overview

EROException is the base class for all custom Remoting SDK exceptions.

As a rule custom exceptions are defined in the RODL so they can be shared between client and server. When the code generation is being performed for the RODL file the code generating facility creates classes for all exceptions defined in the RODL using this class as base. The derived class also has all the properties of the exception defined in the RODL. Accessing those properties will provide user with the required information regarding the exception.
The other use case consists of checking the exception class to be derived from EROException, this will show if the exception is related to the service logic.

Location

  • Unit: uROExceptions.pas
  • Ancestry: Exception | EROException


 

Assign  virtual

Copies data from a given source.

procedure Assign(Source: EROException)

Parameters:

  • Source:

Clone

function Clone: EROException

GetAttributeCount  virtual

Returns the number of custom attributes defined for the class. The code generator always overrides this method to return actual data for the certain class.

This method is for internal use for SOAP processing.

class function GetAttributeCount: Integer

GetAttributeName  virtual

Returns the name of custom attribute defined for the class, with the specified index. The code generator always overrides this method to return actual data for the certain class.

This method is for internal use for SOAP processing.

class function GetAttributeName(aIndex: Integer): string

Parameters:

  • aIndex: The index of attribute.

GetAttributeValue  virtual

Returns the value of custom attribute defined for the class, with the specified index. The code generator always overrides this method to return actual data for the certain class.

This method is for internal use for SOAP processing.

class function GetAttributeValue(aIndex: Integer): string

Parameters:

  • aIndex: The index of attribute.

ReadException  virtual

Deserializes the exception instance from the serializer object. The code generator always overrides this method. The method is called intenally, users have no need to call it.

procedure ReadException(aSerializer: TROBaseSerializer)

Parameters:

  • aSerializer: The serializer object containing the exception to read.

TryGetAttribute

class function TryGetAttribute(aName: string; out aValue: string): Boolean

Parameters:

  • aName:
  • aValue:

WriteException  virtual

Deserializes the exception instance from the serializer object. The code generator always overrides this method. The method is called intenally, users have no need to call it.

procedure WriteException(aSerializer: TROBaseSerializer)

Parameters:

  • aSerializer: The serializer object containing the exception to read.

 

GetAttributeCount  virtual

Returns the number of custom attributes defined for the class. The code generator always overrides this method to return actual data for the certain class.

This method is for internal use for SOAP processing.

class function GetAttributeCount: Integer

GetAttributeName  virtual

Returns the name of custom attribute defined for the class, with the specified index. The code generator always overrides this method to return actual data for the certain class.

This method is for internal use for SOAP processing.

class function GetAttributeName(aIndex: Integer): string

Parameters:

  • aIndex: The index of attribute.

GetAttributeValue  virtual

Returns the value of custom attribute defined for the class, with the specified index. The code generator always overrides this method to return actual data for the certain class.

This method is for internal use for SOAP processing.

class function GetAttributeValue(aIndex: Integer): string

Parameters:

  • aIndex: The index of attribute.

TryGetAttribute

class function TryGetAttribute(aName: string; out aValue: string): Boolean

Parameters:

  • aName:
  • aValue:

 

Assign  virtual

Copies data from a given source.

procedure Assign(Source: EROException)

Parameters:

  • Source:

Clone

function Clone: EROException

ReadException  virtual

Deserializes the exception instance from the serializer object. The code generator always overrides this method. The method is called intenally, users have no need to call it.

procedure ReadException(aSerializer: TROBaseSerializer)

Parameters:

  • aSerializer: The serializer object containing the exception to read.

WriteException  virtual

Deserializes the exception instance from the serializer object. The code generator always overrides this method. The method is called intenally, users have no need to call it.

procedure WriteException(aSerializer: TROBaseSerializer)

Parameters:

  • aSerializer: The serializer object containing the exception to read.