Source code for crabpy.gateway.exception

# -*- coding: utf-8 -*-
'''
This module contains custom errors that can be generated by gateways.

.. versionadded:: 0.2.0
'''


[docs]class GatewayException(Exception): ''' A base exception. ''' def __init__(self, message): self.message = message
[docs]class GatewayRuntimeException(GatewayException): ''' An exception that signifies a soap request went wrong. ''' soapfault = None ''' The soapfault that was generated by the service. ''' def __init__(self, message, soapfault): GatewayException.__init__(self, message) self.soapfault = soapfault
[docs]class GatewayAuthenticationException(GatewayRuntimeException): ''' An exception that signifies something went wrong during authentication. ''' pass