exception.network - Palamecia/mint GitHub Wiki

Module

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

Members

Modifiers Member Description
- final device Internal device object.
+ const getDevice Returns the device that raised the error.
+ const getMessage Returns the error description.
- final message Internal message
+ const new Creates a new context. The message parameter provides a description of the ...
+ const toString Returns the exception informations as a string.

Exception.SocketError

This class provides the context of an exception raised by a socket.

Inherits

Members

Modifiers Member Description
- final % errno Internal error identifier.
- @ g_lib Global library handle.
+ 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 e...
- final object Internal involved object.
+ const toString Returns the exception informations as a string.

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.