Source code for rtrlib.exceptions

# -*- coding: utf8 -*-
"""
rtrlib.exceptions
-----------------


Module for all custom exceptions
"""

from __future__ import absolute_import, unicode_literals


[docs]class RTRlibException(Exception): """rtrlib exception base class."""
[docs]class RTRInitError(RTRlibException): """An error during initialization of the RTR manager occurred."""
[docs]class PFXException(RTRlibException): """An error during validation occurred."""
[docs]class IpConversionException(RTRlibException): """An Error during str to address conversion or the reverse occurred."""
[docs]class SyncTimeout(RTRlibException): """The timeout was reached while waiting for sync."""