EROUnregisteredServerException
Overview
This exception is raised on a client if any exception has been received form the server that is not known to the client application. For exceptions to be properly propagated from the server to the client, the respective exception classes must be registered on the client using the RegisterExceptionClass procedure. This is done automatically for classes defined within the Remoting SDK or in the applications's RODL file, but any additional exceptions classes defined by the Delphi RTL, third party libraries or custom user code will be unknown to the Remoting SDK, and raised in form of an EROUnregisteredServerException.
To make your own exception types known to the streaming infrastructure, make sure to call RegisterExceptionClass and register your exception in the initialization section of the unit that defines your exception classes.
Location
- Unit: uROExceptions.pas
- Ancestry: Exception | EROException | EROUnregisteredServerException
constructor Create
constructor Create(const Msg: string; const aOriginalExceptionClassName: string)
Parameters:
- Msg:
- aOriginalExceptionClassName:
constructor CreateFmt
constructor CreateFmt(const Msg: string; const aOriginalExceptionClassName: string; const Args: array of const)
Parameters:
- Msg:
- aOriginalExceptionClassName:
- Args:
Assign virtual (declared in EROException)
Copies data from a given source.
procedure Assign(Source: EROException)
Parameters:
- Source:
Clone (declared in EROException)
function Clone: EROException
GetAttributeCount virtual (declared in EROException)
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 (declared in EROException)
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 (declared in EROException)
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.
OriginalExceptionClassName
property OriginalExceptionClassName: string read
ReadException virtual (declared in EROException)
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 (declared in EROException)
class function TryGetAttribute(aName: string; out aValue: string): Boolean
Parameters:
- aName:
- aValue:
WriteException virtual (declared in EROException)
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.
OriginalExceptionClassName
property OriginalExceptionClassName: string read
GetAttributeCount virtual (declared in EROException)
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 (declared in EROException)
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 (declared in EROException)
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 (declared in EROException)
class function TryGetAttribute(aName: string; out aValue: string): Boolean
Parameters:
- aName:
- aValue:
constructor Create
constructor Create(const Msg: string; const aOriginalExceptionClassName: string)
Parameters:
- Msg:
- aOriginalExceptionClassName:
constructor CreateFmt
constructor CreateFmt(const Msg: string; const aOriginalExceptionClassName: string; const Args: array of const)
Parameters:
- Msg:
- aOriginalExceptionClassName:
- Args:
Assign virtual (declared in EROException)
Copies data from a given source.
procedure Assign(Source: EROException)
Parameters:
- Source:
Clone (declared in EROException)
function Clone: EROException
ReadException virtual (declared in EROException)
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 (declared in EROException)
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.