The surf.exc Module

Module for SuRF exceptions.

exception surf.exc.CardinalityException[source]

Bases: exceptions.Exception

Raised when list length != 1.

Subclasses of this exception are raised by surf.resource.result_proxy.ResultProxy.one() and surf.resource.value.ResultValue.get_one().

exception surf.exc.MultipleResultsFound[source]

Bases: surf.exc.CardinalityException

Raised when list length > 1.

This exception is raised by surf.resource.result_proxy.ResultProxy.one() and surf.resource.value.ResultValue.get_one().

exception surf.exc.NoResultFound[source]

Bases: surf.exc.CardinalityException

Raised when list length == 0.

This exception is raised by surf.resource.result_proxy.ResultProxy.one() and surf.resource.value.ResultValue.get_one().

Previous topic

Install and Configure AllegroGraph RDF Store

Next topic

The surf.namespace Module

This Page