ExceptionType

Overview

ExceptionType is the base class for all exception types defined in your RODL Library and provides special support for propagating exceptions back from servers. Any server exceptions that are unknown on the client or do not descend from ExceptionType will be represented using a special descendant of ExceptionType, ServerException.

Location

Implements

 

constructor (String)

Creates exception with given text.

 

constructor(aExceptionMessage: String)

 

ExceptionType(String aExceptionMessage)

Parameters:

  • aExceptionMessage: Given text.

constructor (String, Boolean)

Creates exception with given text and server flag.

 

constructor(aExceptionMessage: String; aFromServer: Boolean)

 

ExceptionType(String aExceptionMessage, Boolean aFromServer)

Parameters:

  • aExceptionMessage: Given text.
  • aFromServer: Given server flag.

FromServer

 

property FromServer: Boolean read write;

 

Boolean FromServer { __get; __set; }

Message

 

property Message: String read write;

 

String Message { __get; __set; }

readFromMessage

For internal use, used by the RO/J framework to stream the exception to a message packet.

 

method readFromMessage(aName: String; aMessage: Message)

 

void readFromMessage(String aName, Message aMessage)

Parameters:

  • aName: Given name.
  • aMessage: Given message.

ServerStackTrace

 

property ServerStackTrace: String read write;

 

String ServerStackTrace { __get; __set; }

toString

Overrided method to output message and stacktrace.

 

method toString: String

 

String toString()

writeToMessage

For internal use, used by the RO/J framework to stream the exception to a message packet.

 

method writeToMessage(aName: String; aMessage: Message)

 

void writeToMessage(String aName, Message aMessage)

Parameters:

  • aName: Given name.
  • aMessage: Given message.

 

FromServer

 

property FromServer: Boolean read write;

 

Boolean FromServer { __get; __set; }

Message

 

property Message: String read write;

 

String Message { __get; __set; }

ServerStackTrace

 

property ServerStackTrace: String read write;

 

String ServerStackTrace { __get; __set; }

 

constructor (String)

Creates exception with given text.

 

constructor(aExceptionMessage: String)

 

ExceptionType(String aExceptionMessage)

Parameters:

  • aExceptionMessage: Given text.

constructor (String, Boolean)

Creates exception with given text and server flag.

 

constructor(aExceptionMessage: String; aFromServer: Boolean)

 

ExceptionType(String aExceptionMessage, Boolean aFromServer)

Parameters:

  • aExceptionMessage: Given text.
  • aFromServer: Given server flag.

readFromMessage

For internal use, used by the RO/J framework to stream the exception to a message packet.

 

method readFromMessage(aName: String; aMessage: Message)

 

void readFromMessage(String aName, Message aMessage)

Parameters:

  • aName: Given name.
  • aMessage: Given message.

toString

Overrided method to output message and stacktrace.

 

method toString: String

 

String toString()

writeToMessage

For internal use, used by the RO/J framework to stream the exception to a message packet.

 

method writeToMessage(aName: String; aMessage: Message)

 

void writeToMessage(String aName, Message aMessage)

Parameters:

  • aName: Given name.
  • aMessage: Given message.

Descendants