exception.container - Palamecia/mint GitHub Wiki
Module
load exception.container
This module provides classes to store exception contexts raised by the container module.
Packages
Classes
Exception.InvalidKey
This class provides the context of an exception on access to an element with an invalid key. It provides the container and the key used.
Inherits
Public members
Modifiers | Member | Description |
---|---|---|
const |
getContainer | Returns the container that raised the error or none if not specified. |
const |
getKey | Returns the key associated to the exception. |
const |
new | Creates a new context. The key parameter is the key used when the exception... |
const |
toString | Returns the exception informations as a string. |
Private members
Modifiers | Member | Description |
---|---|---|
final |
container | Internal container. |
final |
key | Internal key. |
Exception.NoItem
This class provides the context of an exception on modification to an non existing element. It provides the container used and the action performed.
Inherits
Public members
Modifiers | Member | Description |
---|---|---|
const |
getContainer | Returns the container that raised the error. |
const |
getMethod | Returns the method associated to the exception. |
const |
new | Creates a new context. The method parameter is the method used when the exc... |
const |
toString | Returns the exception informations as a string. |
Private members
Modifiers | Member | Description |
---|---|---|
final |
function | Internal function infos. |
Exception.OutOfRange
This class provides the context of an exception on access to an element out of range. It provides the container and the index used.
Inherits
Public members
Modifiers | Member | Description |
---|---|---|
const |
getContainer | Returns the container that raised the error or none if not specified. |
const |
getIndex | Returns the index associated to the exception. |
const |
new | Creates a new context. The index parameter is the index used when the excep... |
const |
toString | Returns the exception informations as a string. |
Private members
Modifiers | Member | Description |
---|---|---|
final |
container | Internal container. |
final |
index | Internal index. |
Descriptions
Exception.InvalidKey.container
none
Internal container.
Exception.InvalidKey.getContainer
def (const self)
Returns the container that raised the error or none
if not specified.
Exception.InvalidKey.getKey
def (const self)
Returns the key associated to the exception.
Exception.InvalidKey.key
none
Internal key.
Exception.InvalidKey.new
def (self, key, container = none)
Creates a new context. The key
parameter is the key used when the
exception was raised. The container
parameter is the container that
raised the error.
Exception.InvalidKey.toString
def (const self)
Returns the exception informations as a string.
Exception.NoItem.function
none
Internal function infos.
Exception.NoItem.getContainer
def (const self)
Returns the container that raised the error.
Exception.NoItem.getMethod
def (const self)
Returns the method associated to the exception.
Exception.NoItem.new
def (self, container, % method)
Creates a new context. The method
parameter is the method used when the
exception was raised. The container
parameter is the container that
raised the error.
Exception.NoItem.toString
def (const self)
Returns the exception informations as a string.
Exception.OutOfRange.container
none
Internal container.
Exception.OutOfRange.getContainer
def (const self)
Returns the container that raised the error or none
if not specified.
Exception.OutOfRange.getIndex
def (const self)
Returns the index associated to the exception.
Exception.OutOfRange.index
0
Internal index.
Exception.OutOfRange.new
def (self, index, container = none)
Creates a new context. The index
parameter is the index used when the
exception was raised. The container
parameter is the container that
raised the error.
Exception.OutOfRange.toString
def (const self)
Returns the exception informations as a string.