ServerException
Overview
This is the base exception for all custom exceptions defined in the RODL.
The class provides the FromServer property that you can use in client code to see if the exception was propagated back from a server (or was raised on the same tier as the current code).
Note that due to limitations of the Compact Framework, custom exception marshaling is not supported on the Compact Framework.
Server-sided exceptions will always be re-thrown as ServerExceptions (and not descendants of it) and the original exception class name will be appended to the exception Message.
Location
- Reference: RemObjects.SDK.dll
- Namespace: RemObjects.SDK.Types
- Ancestry: Exception | ServerException
constructor
constructor
ServerException()
init()
Sub New()
constructor (SerializationInfo, StreamingContext) .NET Framework
constructor(info: SerializationInfo; context: StreamingContext)
ServerException(SerializationInfo info, StreamingContext context)
init(_ info: SerializationInfo, _ context: StreamingContext)
Sub New(info As SerializationInfo, context As StreamingContext)
Parameters:
- info:
- context:
constructor (String)
constructor(message: String)
ServerException(String message)
init(_ message: String)
Sub New(message As String)
Parameters:
- message:
constructor (String, Boolean)
constructor(message: String; fromServer: Boolean)
ServerException(String message, Boolean fromServer)
init(_ message: String, _ fromServer: Boolean)
Sub New(message As String, fromServer As Boolean)
Parameters:
- message:
- fromServer:
constructor (String, Exception)
constructor(message: String; innerException: Exception)
ServerException(String message, Exception innerException)
init(_ message: String, _ innerException: Exception)
Sub New(message As String, innerException As Exception)
Parameters:
- message:
- innerException:
FromServer
This property is set to true if the exception was received from the server and was re-thrown on the client tier. It's false if the exception was thrown on the same tier as the code processing it.
property FromServer: Boolean read;
Boolean FromServer { get; }
var FromServer: Boolean { get{} }
ReadOnly Property FromServer() As Boolean
GetAttributeCount
method GetAttributeCount: Int32
Int32 GetAttributeCount()
func GetAttributeCount() -> Int32
Function GetAttributeCount() As Int32
GetAttributeName
method GetAttributeName(index: Int32): String
String GetAttributeName(Int32 index)
func GetAttributeName(_ index: Int32) -> String
Function GetAttributeName(index As Int32) As String
Parameters:
- index:
GetAttributeValue
method GetAttributeValue(index: Int32): String
String GetAttributeValue(Int32 index)
func GetAttributeValue(_ index: Int32) -> String
Function GetAttributeValue(index As Int32) As String
Parameters:
- index:
OriginalExceptionClassName
property OriginalExceptionClassName: String read write;
String OriginalExceptionClassName { get; set; }
var OriginalExceptionClassName: String { get{} set{} }
Property OriginalExceptionClassName() As String
ServerStackTrace
The stack trace of the exception location obtained from the server, if available.
property ServerStackTrace: String read write;
String ServerStackTrace { get; set; }
var ServerStackTrace: String { get{} set{} }
Property ServerStackTrace() As String
ToString .NET Core, .NET Framework, .NET Standard
method ToString: String
String ToString()
func ToString() -> String
Function ToString() As String
FromServer
This property is set to true if the exception was received from the server and was re-thrown on the client tier. It's false if the exception was thrown on the same tier as the code processing it.
property FromServer: Boolean read;
Boolean FromServer { get; }
var FromServer: Boolean { get{} }
ReadOnly Property FromServer() As Boolean
OriginalExceptionClassName
property OriginalExceptionClassName: String read write;
String OriginalExceptionClassName { get; set; }
var OriginalExceptionClassName: String { get{} set{} }
Property OriginalExceptionClassName() As String
ServerStackTrace
The stack trace of the exception location obtained from the server, if available.
property ServerStackTrace: String read write;
String ServerStackTrace { get; set; }
var ServerStackTrace: String { get{} set{} }
Property ServerStackTrace() As String
constructor
constructor
ServerException()
init()
Sub New()
constructor (SerializationInfo, StreamingContext) .NET Framework
constructor(info: SerializationInfo; context: StreamingContext)
ServerException(SerializationInfo info, StreamingContext context)
init(_ info: SerializationInfo, _ context: StreamingContext)
Sub New(info As SerializationInfo, context As StreamingContext)
Parameters:
- info:
- context:
constructor (String)
constructor(message: String)
ServerException(String message)
init(_ message: String)
Sub New(message As String)
Parameters:
- message:
constructor (String, Boolean)
constructor(message: String; fromServer: Boolean)
ServerException(String message, Boolean fromServer)
init(_ message: String, _ fromServer: Boolean)
Sub New(message As String, fromServer As Boolean)
Parameters:
- message:
- fromServer:
constructor (String, Exception)
constructor(message: String; innerException: Exception)
ServerException(String message, Exception innerException)
init(_ message: String, _ innerException: Exception)
Sub New(message As String, innerException As Exception)
Parameters:
- message:
- innerException:
GetAttributeCount
method GetAttributeCount: Int32
Int32 GetAttributeCount()
func GetAttributeCount() -> Int32
Function GetAttributeCount() As Int32
GetAttributeName
method GetAttributeName(index: Int32): String
String GetAttributeName(Int32 index)
func GetAttributeName(_ index: Int32) -> String
Function GetAttributeName(index As Int32) As String
Parameters:
- index:
GetAttributeValue
method GetAttributeValue(index: Int32): String
String GetAttributeValue(Int32 index)
func GetAttributeValue(_ index: Int32) -> String
Function GetAttributeValue(index As Int32) As String
Parameters:
- index:
ToString .NET Core, .NET Framework, .NET Standard
method ToString: String
String ToString()
func ToString() -> String
Function ToString() As String
- AccessDeniedForRoleException
- AccessRequiresRoleException
- DAException
- InstanceBusyException
- InvalidMessageTypeException
- LoginFailedException
- ObjectPoolExhaustedException
- OlympiaException
- ScriptException
- ServerSetupException
- SessionDisposedException
- SessionLimitException
- SessionNotFoundException
- SessionRolesException
- VariantException
- .NET
- Java