Source code for dwave_networkx.exceptions

"""
Base exceptions and errors for D-Wave NetworkX.

All are derived from NetworkXException.

"""

from networkx import NetworkXException


[docs]class DWaveNetworkXException(NetworkXException): """Base class for exceptions in DWaveNetworkX."""
[docs]class DWaveNetworkXMissingSampler(DWaveNetworkXException): """Exception raised by an algorithm requiring a discrete model sampler when none is provided."""