Source code for pytx.errors

[docs]class pytxException(Exception): """ Generic Exception. """ def __init__(self, message): self.message = message def __str__(self): return self.message
[docs]class pytxInitError(pytxException): """ Exception for when we the developer doesn't init before instantiating an object. """
[docs]class pytxAttributeError(pytxException): """ Exception for when we are given a value we are not expecting or is invalid. """
[docs]class pytxValueError(pytxException): """ Exception for when we are given a value we are not expecting or is invalid. """
[docs]class pytxFetchError(pytxException): """ Exception for when a GET or POST attempt fails. """