Skip to content

exceptions

Custom exceptions for BumpVersion.

Classes

BadInputError

BadInputError(message: str, ctx: Optional[Context] = None)

Bases: BumpVersionError

User input was bad.

BumpVersionError

BumpVersionError(
    message: str, ctx: Optional[Context] = None
)

Bases: UsageError

Custom base class for all BumpVersion exception types.

ConfigurationError

ConfigurationError(
    message: str, ctx: Optional[Context] = None
)

Bases: BumpVersionError

A configuration key-value is missing or in the wrong type.

DirtyWorkingDirectoryError

DirtyWorkingDirectoryError(
    message: str, ctx: Optional[Context] = None
)

Bases: BumpVersionError

The working directory is dirty, and it is not allowed.

FormattingError

FormattingError(
    message: str, ctx: Optional[Context] = None
)

Bases: BumpVersionError

We are unable to represent a version required by a format.

HookError

HookError(message: str, ctx: Optional[Context] = None)

Bases: BumpVersionError

A hook failed.

InvalidVersionPartError

InvalidVersionPartError(
    message: str, ctx: Optional[Context] = None
)

Bases: BumpVersionError

The specified part (e.g. ‘bugfix’) was not found.

MissingValueError

MissingValueError(
    message: str, ctx: Optional[Context] = None
)

Bases: BumpVersionError

A part required for a version format is empty.

SignedTagsError

SignedTagsError(
    message: str, ctx: Optional[Context] = None
)

Bases: BumpVersionError

The VCS does not support signed tags.

VersionNotFoundError

VersionNotFoundError(
    message: str, ctx: Optional[Context] = None
)

Bases: BumpVersionError

A version number was not found in a source file.