siliziumbrain.exceptions: Types Modinfo Source  

Exceptions

This module provides a collection of Exception classes.

Types Summary

TArgumentOutOfRangeException ArgumentOutOfRangeException Exception Class.
TException (Abstract) Exception Class.
TIllegalArgumentException IllegalArgumentException Exception Class.
TIndexOutOfBoundsException IndexOutOfBounds Exception Class.
TInvalidOperationException InvalidOperationException Exception Class.
TNullPointerException Nullpointer Exception Class.

Types

Type TArgumentOutOfRangeException Extends TException
DescriptionArgumentOutOfRangeException Exception Class.
InformationThis Exception is used when e.g. a method gets an argument which is too big or too small.
Methods Summary
Copy Copies the exception.
NewException Constructor for the exception.
Functions Summary
__NextID Private method. Do not use.
Method Copy:TArgumentOutOfRangeException()
DescriptionCopies the exception.
InformationCreates a deep copy of the exception.
returns: A deep copy of the exception.
Method NewException:TArgumentOutOfRangeException(psGivenMessage:String)
DescriptionConstructor for the exception.
InformationSets the extern message to psGivenMessage.
Can be used like that: Throw new TArgumentOutOfRangeException.NewException.
Function __NextID:Int()
DescriptionPrivate method. Do not use.
InformationReturns the next ID for a new exception.

Type TException Extends TObject Abstract
Description(Abstract) Exception Class.
InformationEvery Exception inherits from this class.
Methods Summary
__GivenMessage Private Method. Do not use.
__ID Private Method. Do not use.
__OwnMessage Private Method. Do not use.
__OwnType Private Method. Do not use.
__SetGivenMessage Private Method. Do not use.
__SetID Private Method. Do not use.
__SetOwnMessage Private Method. Do not use.
__SetOwnType Private Method. Do not use.
__SetTimeWhenThrown Private Method. Do not use.
__TimeWhenThrown Private Method. Do not use.
Equals Checks if two objects are equal.
ToString The Exception as a string.
Method __GivenMessage:String()
DescriptionPrivate Method. Do not use.
InformationGetter for the extern exception message.
Method __ID:Int()
DescriptionPrivate Method. Do not use.
InformationGetter for the ID of the exception.
Method __OwnMessage:String()
DescriptionPrivate Method. Do not use.
InformationGetter for the intern exception message.
Method __OwnType:String()
DescriptionPrivate Method. Do not use.
InformationGetter for the exception type as string.
Method __SetGivenMessage(psGivenMessage:String)
DescriptionPrivate Method. Do not use.
InformationSetter for the extern exception message.
Method __SetID(piID:Int)
DescriptionPrivate Method. Do not use.
InformationSetter for the ID of the exception.
Method __SetOwnMessage(psOwnMessage:String)
DescriptionPrivate Method. Do not use.
InformationSetter for the intern exception message.
Method __SetOwnType(psOwnType:String)
DescriptionPrivate Method. Do not use.
InformationSetter for the exception Type as string.
Method __SetTimeWhenThrown(psTimeWhenThrown:String)
DescriptionPrivate Method. Do not use.
InformationSetter for the time when the exception was thrown as a string.
Method __TimeWhenThrown:String()
DescriptionPrivate Method. Do not use.
InformationGetter for the time when the exception was thrown as a string.
Method Equals:Byte(ptoOtherObject:TObject)
DescriptionChecks if two objects are equal.
Method ToString:String()
DescriptionThe Exception as a string.
InformationThis will return a nicely formatted string which descripes the exception. returns: String with all needed information about the exception.

Type TIllegalArgumentException Extends TException
DescriptionIllegalArgumentException Exception Class.
InformationThis Exception is used when e.g. a method gets an argument which is just invalid for this method.
Methods Summary
Copy Copies the exception.
NewException Constructor for the exception.
Functions Summary
__NextID Private method. Do not use.
Method Copy:TIllegalArgumentException()
DescriptionCopies the exception.
InformationCreates a deep copy of the exception.
returns: A deep copy of the exception.
Method NewException:TIllegalArgumentException(psGivenMessage:String)
DescriptionConstructor for the exception.
InformationSets the extern message to psGivenMessage.
Can be used like that: Throw new TIllegalArgumentException.NewException.
Function __NextID:Int()
DescriptionPrivate method. Do not use.
InformationReturns the next ID for a new exception.

Type TIndexOutOfBoundsException Extends TException
DescriptionIndexOutOfBounds Exception Class.
InformationThis Exception is used when e.g. a array is indexed with a too large index.
Methods Summary
Copy Copies the exception.
NewException Constructor for the exception.
Functions Summary
__NextID Private method. Do not use.
Method Copy:TIndexOutOfBoundsException()
DescriptionCopies the exception.
InformationCreates a deep copy of the exception.
returns: A deep copy of the exception.
Method NewException:TIndexOutOfBoundsException(psGivenMessage:String)
DescriptionConstructor for the exception.
InformationSets the extern message to psGivenMessage.
Can be used like that: Throw new TIndexOutOfBoundsException.NewException.
Function __NextID:Int()
DescriptionPrivate method. Do not use.
InformationReturns the next ID for a new exception.

Type TInvalidOperationException Extends TException
DescriptionInvalidOperationException Exception Class.
InformationThis Exception is used when e.g. a object tries to call a method although the object is not in the right state to call that method (e.g. empty list calls Remove).
Methods Summary
Copy Copies the exception.
NewException Constructor for the exception.
Functions Summary
__NextID Private method. Do not use.
Method Copy:TInvalidOperationException()
DescriptionCopies the exception.
InformationCreates a deep copy of the exception.
returns: A deep copy of the exception.
Method NewException:TInvalidOperationException(psGivenMessage:String)
DescriptionConstructor for the exception.
InformationSets the extern message to psGivenMessage.
Can be used like that: Throw new TInvalidOperationException.NewException.
Function __NextID:Int()
DescriptionPrivate method. Do not use.
InformationReturns the next ID for a new exception.

Type TNullPointerException Extends TException
DescriptionNullpointer Exception Class.
InformationThis Exception is used when e.g. a function gets 'null' as a paremter although it should not.
Methods Summary
Copy Copies the exception.
NewException Constructor for the exception.
Functions Summary
__NextID Private method. Do not use.
Method Copy:TNullPointerException()
DescriptionCopies the exception.
InformationCreates a deep copy of the exception.
returns: A deep copy of the exception.
Method NewException:TNullPointerException(psGivenMessage:String)
DescriptionConstructor for the exception.
InformationSets the extern message to psGivenMessage.
Can be used like that: Throw new TNullPointerException.NewException.
Function __NextID:Int()
DescriptionPrivate method. Do not use.
InformationReturns the next ID for a new exception.

Module Information

Versionv1.01
AuthorM0rgenstern - Siliziumbrain - Kevin Peter Hoffeld
LicensePublic Domain
History v1.0012 July 2012 - Final Release
Histroy v1.0113 July 2012 - Now a child class of TObject.