exception.network - Palamecia/mint GitHub Wiki
Module exception.network
Description
load exception.network
This module provides classes to store exception contexts raised by the network module.
Packages
Classes
Exception.InvalidNetworkOperation
This class provides the context of an exception raised on attempt to perform an invalide operation on a network device.
Inherits
Public members
| Modifiers | Member | Description |
|---|---|---|
const |
getDevice | Returns the device that raised the error. |
const |
getMessage | Returns the error description. |
const |
new | Creates a new context. The message parameter provides a description of the at... |
const |
toString | Returns the exception informations as a string. |
Private members
| Modifiers | Member | Description |
|---|---|---|
final |
device | Internal device object. |
final |
message | Internal message |
Exception.SocketError
This class provides the context of an exception raised by a socket.
Inherits
Public members
| Modifiers | Member | Description |
|---|---|---|
const |
getDescription | Returns the error description. |
const |
getErrno | Returns the error identifier. |
const |
getObject | Returns the object that raised the error or none if not specified. |
const |
getSocket | Returns the object that raised the error or none if not specified. |
const |
new | Creates a new context. The object parameter is the object that raised the err... |
const |
toString | Returns the exception informations as a string. |
Private members
| Modifiers | Member | Description |
|---|---|---|
final % |
errno | Internal error identifier. |
@ |
g_lib | Global library handle. |
final |
object | Internal involved object. |
Descriptions
Exception.InvalidNetworkOperation.device
null
Internal device object.
Exception.InvalidNetworkOperation.getDevice
def (const self)
Returns the device that raised the error.
Exception.InvalidNetworkOperation.getMessage
def (const self)
Returns the error description.
Exception.InvalidNetworkOperation.message
''
Internal message
Exception.InvalidNetworkOperation.new
def (self, message, device)
Creates a new context. The message parameter provides a description of
the attempted operation. The device parameter is the object that raised
the error.
Exception.InvalidNetworkOperation.toString
def (const self)
Returns the exception informations as a string.
Exception.SocketError.errno
none
Internal error identifier.
Exception.SocketError.g_lib
lib ('libmint-network')
Global library handle.
Exception.SocketError.getDescription
def (const self)
Returns the error description.
Exception.SocketError.getErrno
def (const self)
Returns the error identifier.
Exception.SocketError.getObject
def (const self)
Returns the object that raised the error or none if not specified.
Exception.SocketError.getSocket
def (const self)
Returns the object that raised the error or none if not specified.
Exception.SocketError.new
def (self, object)
Creates a new context. The object parameter is the object that raised
the error. It must provides a getSocket method. The error is retrived
from this socket.
def (self, errno, object)
Creates a new context. The errno parameter must be an instance of
Exception.SystemError.Errno describing the error. The object parameter
is the object that raised the error. It must provides a getSocket method.
Exception.SocketError.object
none
Internal involved object.
Exception.SocketError.toString
def (const self)
Returns the exception informations as a string.