Version: 2.5.0
sdv.errors
Module¶
-
exception
sdv.errors.
IdrefLookupError
(idref, message=None)[source]¶ Bases:
sdv.errors.ValidationError
Raised when an attempt to resolve an ID reference fails. This can occur when the full STIX component definition resides outside of the input document.
-
exception
sdv.errors.
InvalidCyboxVersionError
(message, expected=None, found=None)[source]¶ Bases:
sdv.errors.InvalidVersionError
Raised when an invalid version of CybOX is discovered within an instance document or is passed into a method which depends on CybOX version information.
Parameters: - message – The error message.
- expected – A version or list of expected versions.
- found – The CybOX version that was declared for an instance document or found within an instance document.
-
exception
sdv.errors.
InvalidSTIXVersionError
(message, expected=None, found=None)[source]¶ Bases:
sdv.errors.InvalidVersionError
Raised when an invalid version of STIX is discovered within an instance document or is passed into a method which depends on STIX version information.
Parameters: - message – The error message.
- expected – A version or list of expected versions.
- found – The STIX version that was declared for an instance document or found within an instance document.
-
exception
sdv.errors.
InvalidVersionError
(message, expected=None, found=None)[source]¶ Bases:
sdv.errors.ValidationError
Base Exception for errors raised as a result of invalid version information being declared for a document, or found within a document.
-
exception
sdv.errors.
ProfileParseError
[source]¶ Bases:
sdv.errors.ValidationError
Raised when an error occurs during the parse or initialization of a STIX profile document.
-
exception
sdv.errors.
UnknownCyboxVersionError
[source]¶ Bases:
sdv.errors.UnknownVersionError
Raised when no CybOX version information can be found in an instance document and no version information was provided to a method which requires version information.
-
exception
sdv.errors.
UnknownNamespaceError
[source]¶ Bases:
sdv.errors.ValidationError
Raised when an unknown namespace is encountered in a function.
-
exception
sdv.errors.
UnknownSTIXVersionError
[source]¶ Bases:
sdv.errors.UnknownVersionError
Raised when no STIX version information can be found in an instance document and no version information was provided to a method which requires version information.
-
exception
sdv.errors.
UnknownVersionError
[source]¶ Bases:
sdv.errors.ValidationError
Base Exception for errors raised as a result of not being able to determine the version of an input document.
-
exception
sdv.errors.
UnknownVocabularyError
[source]¶ Bases:
sdv.errors.ValidationError
Raised when an unknown controlled vocabulary name is discovered during best practice validation.
-
exception
sdv.errors.
ValidationError
[source]¶ Bases:
exceptions.Exception
Base Exception for all validator-specific exceptions. This is used directly by some modules as a generic Exception.
-
exception
sdv.errors.
XMLSchemaImportError
[source]¶ Bases:
sdv.errors.ValidationError
Raised when errors occur when generating
xs:import
directives for the “uber” schema, used to validate XML instance documents.
-
exception
sdv.errors.
XMLSchemaIncludeError
[source]¶ Bases:
sdv.errors.ValidationError
Raised when errors occur during the processing of
xs:include
directives found within schema documents.