Package gavo :: Package protocols :: Module soda :: Class DatalinkFault
[frames] | no frames]

Class DatalinkFault

source code

object --+
         |
        DatalinkFault

A datalink error ("fault", as it's called in the spec).

These are usually constructed using one of the classmethods

* AuthenticationFault -- Not authenticated (and authentication required) * AuthorizationFault -- Not authorized (to access the resource) * NotFoundFault -- Unknown ID value * UsageFault -- Invalid input (e.g. no ID values) * TransientFault -- Service is not currently able to function * FatalFault -- Service cannot perform requested action * Fault -- General error (not covered above)

all of which take the pubDID that caused the failure and a human-oriented error message.

Instance Methods
 
__init__(self, code, pubDID, message, exceptionClass, semantics, description=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
asDict(self)
returns an error row for the datalink response.
source code
 
raiseException(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
 
AuthenticationFault(inner, pubDID, message, semantics='http://dc.g-vo.org/datalink#other', description=None) source code
 
AuthorizationFault(inner, pubDID, message, semantics='http://dc.g-vo.org/datalink#other', description=None) source code
 
FatalFault(inner, pubDID, message, semantics='http://dc.g-vo.org/datalink#other', description=None) source code
 
Fault(inner, pubDID, message, semantics='http://dc.g-vo.org/datalink#other', description=None) source code
 
NotFoundFault(inner, pubDID, message, semantics='http://dc.g-vo.org/datalink#other', description=None) source code
 
TransientFault(inner, pubDID, message, semantics='http://dc.g-vo.org/datalink#other', description=None) source code
 
UsageFault(inner, pubDID, message, semantics='http://dc.g-vo.org/datalink#other', description=None) source code
Properties

Inherited from object: __class__

Method Details

__init__(self, code, pubDID, message, exceptionClass, semantics, description=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)