Version: 2.5.0
sdv.errors Module¶
-
exception
sdv.errors.IdrefLookupError(idref, message=None)[source]¶ Bases:
sdv.errors.ValidationErrorRaised 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.InvalidVersionErrorRaised 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.InvalidVersionErrorRaised 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.ValidationErrorBase 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.ValidationErrorRaised when an error occurs during the parse or initialization of a STIX profile document.
-
exception
sdv.errors.UnknownCyboxVersionError[source]¶ Bases:
sdv.errors.UnknownVersionErrorRaised 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.ValidationErrorRaised when an unknown namespace is encountered in a function.
-
exception
sdv.errors.UnknownSTIXVersionError[source]¶ Bases:
sdv.errors.UnknownVersionErrorRaised 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.ValidationErrorBase 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.ValidationErrorRaised when an unknown controlled vocabulary name is discovered during best practice validation.
-
exception
sdv.errors.ValidationError[source]¶ Bases:
exceptions.ExceptionBase 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.ValidationErrorRaised when errors occur when generating
xs:importdirectives for the “uber” schema, used to validate XML instance documents.
-
exception
sdv.errors.XMLSchemaIncludeError[source]¶ Bases:
sdv.errors.ValidationErrorRaised when errors occur during the processing of
xs:includedirectives found within schema documents.