Package musicbrainz2 :: Module webservice :: Class WebServiceError
[frames | no frames]

Class WebServiceError

Exception --+
            |
           WebServiceError

Known Subclasses:
AuthenticationError, ConnectionError, RequestError, ResourceNotFoundError, ResponseError

A web service error has occurred.

This is the base class for several other web service related exceptions.
Method Summary
  __init__(self, msg, reason)
Constructor.
  __str__(self)
Makes this class printable.
    Inherited from Exception
  __getitem__(...)

Method Details

__init__(self, msg='Webservice Error', reason=None)
(Constructor)

Constructor.

Set msg to an error message which explains why this exception was raised. The reason parameter should be the original exception which caused this WebService exception to be raised. If given, it has to be an instance of Exception or one of its child classes.
Parameters:
msg - a string containing an error message
reason - another exception instance, or None
Overrides:
exceptions.Exception.__init__

__str__(self)
(Informal representation operator)

Makes this class printable.
Returns:
a string containing an error message
Overrides:
exceptions.Exception.__str__

Generated by Epydoc 2.1 on Wed Dec 20 18:19:28 2006 http://epydoc.sf.net