0
0
mirror of https://github.com/thegeeklab/corenetworks.git synced 2024-06-02 16:59:41 +02:00
corenetworks/corenetworks/exceptions.py

29 lines
584 B
Python
Raw Permalink Normal View History

2020-04-13 15:37:11 +02:00
# -*- coding: utf-8 -*-
2020-03-30 23:28:34 +02:00
"""Custom package exceptions."""
class CoreNetworksException(Exception):
"""The main exception class."""
2020-04-11 12:05:42 +02:00
def __init__(self, msg, payload=None):
super(CoreNetworksException, self).__init__(msg)
2020-03-30 23:28:34 +02:00
self.payload = payload
class CorenetworksError(CoreNetworksException):
"""Authentication errors exception class."""
pass
class ValidationError(CoreNetworksException):
"""Authentication errors exception class."""
pass
class AuthError(CoreNetworksException):
"""Authentication errors exception class."""
pass