siliziumbrain.exceptions: | Types | Modinfo | Source |
TArgumentOutOfRangeException | ArgumentOutOfRangeException Exception Class. |
TException | (Abstract) Exception Class. |
TIllegalArgumentException | IllegalArgumentException Exception Class. |
TIndexOutOfBoundsException | IndexOutOfBounds Exception Class. |
TInvalidOperationException | InvalidOperationException Exception Class. |
TNullPointerException | Nullpointer Exception Class. |
Type TArgumentOutOfRangeException Extends TException | |
Description | ArgumentOutOfRangeException Exception Class. |
Information | This 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() | |
Description | Copies the exception. |
Information | Creates a deep copy of the exception. returns: A deep copy of the exception. |
Method NewException:TArgumentOutOfRangeException(psGivenMessage:String) | |
Description | Constructor for the exception. |
Information | Sets the extern message to psGivenMessage. Can be used like that: Throw new TArgumentOutOfRangeException.NewException. |
Function __NextID:Int() | |
Description | Private method. Do not use. |
Information | Returns the next ID for a new exception. |
Type TException Extends TObject Abstract | |
Description | (Abstract) Exception Class. |
Information | Every 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() | |
Description | Private Method. Do not use. |
Information | Getter for the extern exception message. |
Method __ID:Int() | |
Description | Private Method. Do not use. |
Information | Getter for the ID of the exception. |
Method __OwnMessage:String() | |
Description | Private Method. Do not use. |
Information | Getter for the intern exception message. |
Method __OwnType:String() | |
Description | Private Method. Do not use. |
Information | Getter for the exception type as string. |
Method __SetGivenMessage(psGivenMessage:String) | |
Description | Private Method. Do not use. |
Information | Setter for the extern exception message. |
Method __SetID(piID:Int) | |
Description | Private Method. Do not use. |
Information | Setter for the ID of the exception. |
Method __SetOwnMessage(psOwnMessage:String) | |
Description | Private Method. Do not use. |
Information | Setter for the intern exception message. |
Method __SetOwnType(psOwnType:String) | |
Description | Private Method. Do not use. |
Information | Setter for the exception Type as string. |
Method __SetTimeWhenThrown(psTimeWhenThrown:String) | |
Description | Private Method. Do not use. |
Information | Setter for the time when the exception was thrown as a string. |
Method __TimeWhenThrown:String() | |
Description | Private Method. Do not use. |
Information | Getter for the time when the exception was thrown as a string. |
Method Equals:Byte(ptoOtherObject:TObject) | |
Description | Checks if two objects are equal. |
Method ToString:String() | |
Description | The Exception as a string. |
Information | This will return a nicely formatted string which descripes the exception. returns: String with all needed information about the exception. |
Type TIllegalArgumentException Extends TException | |
Description | IllegalArgumentException Exception Class. |
Information | This 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() | |
Description | Copies the exception. |
Information | Creates a deep copy of the exception. returns: A deep copy of the exception. |
Method NewException:TIllegalArgumentException(psGivenMessage:String) | |
Description | Constructor for the exception. |
Information | Sets the extern message to psGivenMessage. Can be used like that: Throw new TIllegalArgumentException.NewException. |
Function __NextID:Int() | |
Description | Private method. Do not use. |
Information | Returns the next ID for a new exception. |
Type TIndexOutOfBoundsException Extends TException | |
Description | IndexOutOfBounds Exception Class. |
Information | This 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() | |
Description | Copies the exception. |
Information | Creates a deep copy of the exception. returns: A deep copy of the exception. |
Method NewException:TIndexOutOfBoundsException(psGivenMessage:String) | |
Description | Constructor for the exception. |
Information | Sets the extern message to psGivenMessage. Can be used like that: Throw new TIndexOutOfBoundsException.NewException. |
Function __NextID:Int() | |
Description | Private method. Do not use. |
Information | Returns the next ID for a new exception. |
Type TInvalidOperationException Extends TException | |
Description | InvalidOperationException Exception Class. |
Information | This 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() | |
Description | Copies the exception. |
Information | Creates a deep copy of the exception. returns: A deep copy of the exception. |
Method NewException:TInvalidOperationException(psGivenMessage:String) | |
Description | Constructor for the exception. |
Information | Sets the extern message to psGivenMessage. Can be used like that: Throw new TInvalidOperationException.NewException. |
Function __NextID:Int() | |
Description | Private method. Do not use. |
Information | Returns the next ID for a new exception. |
Type TNullPointerException Extends TException | |
Description | Nullpointer Exception Class. |
Information | This 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() | |
Description | Copies the exception. |
Information | Creates a deep copy of the exception. returns: A deep copy of the exception. |
Method NewException:TNullPointerException(psGivenMessage:String) | |
Description | Constructor for the exception. |
Information | Sets the extern message to psGivenMessage. Can be used like that: Throw new TNullPointerException.NewException. |
Function __NextID:Int() | |
Description | Private method. Do not use. |
Information | Returns the next ID for a new exception. |
Version | v1.01 |
---|---|
Author | M0rgenstern - Siliziumbrain - Kevin Peter Hoffeld |
License | Public Domain |
History v1.00 | 12 July 2012 - Final Release |
Histroy v1.01 | 13 July 2012 - Now a child class of TObject. |