caselawclient.models.documents.exceptions

 1class CannotPublishUnpublishableDocument(Exception):
 2    """A document which has failed publication safety checks in `Document.is_publishable` cannot be published."""
 3
 4
 5class CannotEnrichUnenrichableDocument(Exception):
 6    """A document which cannot be enriched (see `Document.can_enrich`) tried to be sent to enrichment"""
 7
 8
 9class DocumentNotSafeForDeletion(Exception):
10    """A document which is not safe for deletion cannot be deleted."""
class CannotPublishUnpublishableDocument(builtins.Exception):
2class CannotPublishUnpublishableDocument(Exception):
3    """A document which has failed publication safety checks in `Document.is_publishable` cannot be published."""

A document which has failed publication safety checks in Document.is_publishable cannot be published.

class CannotEnrichUnenrichableDocument(builtins.Exception):
6class CannotEnrichUnenrichableDocument(Exception):
7    """A document which cannot be enriched (see `Document.can_enrich`) tried to be sent to enrichment"""

A document which cannot be enriched (see Document.can_enrich) tried to be sent to enrichment

class DocumentNotSafeForDeletion(builtins.Exception):
10class DocumentNotSafeForDeletion(Exception):
11    """A document which is not safe for deletion cannot be deleted."""

A document which is not safe for deletion cannot be deleted.