[docs]classSemanticReleaseBaseError(Exception):""" Base Exception from which all other custom Exceptions defined in semantic_release inherit """
[docs]classInvalidConfiguration(SemanticReleaseBaseError):"""Raised when configuration is deemed invalid"""
[docs]classInvalidVersion(ValueError,SemanticReleaseBaseError):""" Raised when Version.parse attempts to parse a string containing an invalid version. """
[docs]classNotAReleaseBranch(InvalidConfiguration):""" Raised when semantic_release is invoked on a branch which isn't configured for releases """
[docs]classCommitParseError(SemanticReleaseBaseError):""" Raised when a commit cannot be parsed by a commit parser. Custom commit parsers should also raise this Exception """
[docs]classMissingMergeBaseError(SemanticReleaseBaseError):""" Raised when the merge base cannot be found with the current history. Generally because of a shallow git clone. """
[docs]classUnexpectedResponse(SemanticReleaseBaseError):""" Raised when an HTTP response cannot be parsed properly or the expected structure is not found. """
[docs]classIncompleteReleaseError(SemanticReleaseBaseError):""" Raised when there is a failure amongst one of the api requests when creating a release on a remote hvcs. """
[docs]classAssetUploadError(SemanticReleaseBaseError):""" Raised when there is a failure uploading an asset to a remote hvcs's release artifact storage. """
[docs]classParserLoadError(SemanticReleaseBaseError):""" Raised when there is a failure to find, load, or instaniate a custom parser definition. """