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


 

constructor

 

constructor

 

ServerException()

 

Sub New()

constructor (SerializationInfo, StreamingContext)

 

constructor(info: SerializationInfo; context: StreamingContext)

 

ServerException(SerializationInfo info, StreamingContext context)

 

Sub New(info As SerializationInfo, context As StreamingContext)

Parameters:

  • info:
  • context:

constructor (String)

 

constructor(message: String)

 

ServerException(String message)

 

Sub New(message As String)

Parameters:

  • message:

constructor (String, Boolean)

 

constructor(message: String; fromServer: Boolean)

 

ServerException(String message, Boolean fromServer)

 

Sub New(message As String, fromServer As Boolean)

Parameters:

  • message:
  • fromServer:

constructor (String, Exception)

 

constructor(message: String; innerException: Exception)

 

ServerException(String message, Exception innerException)

 

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; }

 

ReadOnly Property FromServer() As Boolean

GetAttributeCount

 

method GetAttributeCount: Int32

 

Int32 GetAttributeCount()

 

Function GetAttributeCount() As Int32

GetAttributeName

 

method GetAttributeName(index: Int32): String

 

String GetAttributeName(Int32 index)

 

Function GetAttributeName(index As Int32) As String

Parameters:

  • index:

GetAttributeValue

 

method GetAttributeValue(index: Int32): String

 

String GetAttributeValue(Int32 index)

 

Function GetAttributeValue(index As Int32) As String

Parameters:

  • index:

ServerStackTrace

The stack trace of the exception location obtained from the server, if available.

 

property ServerStackTrace: String read write;

 

String ServerStackTrace { get; set; }

 

Property ServerStackTrace() As String

ToString

 

method ToString: String

 

String ToString()

 

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; }

 

ReadOnly Property FromServer() As Boolean

ServerStackTrace

The stack trace of the exception location obtained from the server, if available.

 

property ServerStackTrace: String read write;

 

String ServerStackTrace { get; set; }

 

Property ServerStackTrace() As String

 

constructor

 

constructor

 

ServerException()

 

Sub New()

constructor (SerializationInfo, StreamingContext)

 

constructor(info: SerializationInfo; context: StreamingContext)

 

ServerException(SerializationInfo info, StreamingContext context)

 

Sub New(info As SerializationInfo, context As StreamingContext)

Parameters:

  • info:
  • context:

constructor (String)

 

constructor(message: String)

 

ServerException(String message)

 

Sub New(message As String)

Parameters:

  • message:

constructor (String, Boolean)

 

constructor(message: String; fromServer: Boolean)

 

ServerException(String message, Boolean fromServer)

 

Sub New(message As String, fromServer As Boolean)

Parameters:

  • message:
  • fromServer:

constructor (String, Exception)

 

constructor(message: String; innerException: Exception)

 

ServerException(String message, Exception innerException)

 

Sub New(message As String, innerException As Exception)

Parameters:

  • message:
  • innerException:

GetAttributeCount

 

method GetAttributeCount: Int32

 

Int32 GetAttributeCount()

 

Function GetAttributeCount() As Int32

GetAttributeName

 

method GetAttributeName(index: Int32): String

 

String GetAttributeName(Int32 index)

 

Function GetAttributeName(index As Int32) As String

Parameters:

  • index:

GetAttributeValue

 

method GetAttributeValue(index: Int32): String

 

String GetAttributeValue(Int32 index)

 

Function GetAttributeValue(index As Int32) As String

Parameters:

  • index:

ToString

 

method ToString: String

 

String ToString()

 

Function ToString() As String