b.e.BzrError(StandardError) : class documentation

Part of bzrlib.errors View In Hierarchy

Known subclasses: bzrlib.errors.AlreadyBuilding, bzrlib.errors.AlreadyVersionedError, bzrlib.errors.AmbiguousBase, bzrlib.errors.AppendRevisionsOnlyViolation, bzrlib.errors.BadBundle, bzrlib.errors.BadCommitMessageEncoding, bzrlib.errors.BadConversionTarget, bzrlib.errors.BadFileKindError, bzrlib.errors.BadFilenameEncoding, bzrlib.errors.BadIndexData, bzrlib.errors.BadIndexDuplicateKey, bzrlib.errors.BadIndexFormatSignature, bzrlib.errors.BadIndexKey, bzrlib.errors.BadIndexOptions, bzrlib.errors.BadIndexValue, bzrlib.errors.BadInventoryFormat, bzrlib.errors.BadOptionValue, bzrlib.errors.BadSubsumeSource, bzrlib.errors.BinaryFile, bzrlib.errors.BoundBranchConnectionFailure, bzrlib.errors.BoundBranchOutOfDate, bzrlib.errors.BranchError, bzrlib.errors.BundleNotSupported, bzrlib.errors.BzrCommandError, bzrlib.errors.BzrDirError, bzrlib.errors.BzrMoveFailedError, bzrlib.errors.BzrNewError, bzrlib.errors.BzrRemoveChangedFilesError, bzrlib.errors.CannotBindAddress, bzrlib.errors.CannotCommitSelectedFileMerge, bzrlib.errors.CannotReverseCherrypick, bzrlib.errors.CantMoveRoot, bzrlib.errors.CantReprocessAndShowBase, bzrlib.errors.CommitToDoubleBoundBranch, bzrlib.errors.ConfigContentError, bzrlib.errors.ConfigOptionValueError, bzrlib.errors.ConflictFormatError, bzrlib.errors.ConflictsInTree, bzrlib.errors.ContainerError, bzrlib.errors.CorruptDirstate, bzrlib.errors.CorruptRepository, bzrlib.errors.DecompressCorruption, bzrlib.errors.DependencyNotPresent, bzrlib.errors.DirectoryLookupFailure, bzrlib.errors.DirstateCorrupt, bzrlib.errors.DivergedBranches, bzrlib.errors.DuplicateFileId, bzrlib.errors.DuplicateHelpPrefix, bzrlib.errors.DuplicateKey, bzrlib.errors.ErrorFromSmartServer, bzrlib.errors.ExcludesUnsupported, bzrlib.errors.ExecutableMissing, bzrlib.errors.ExistingContent, bzrlib.errors.ExistingLimbo, bzrlib.errors.ExistingPendingDeletion, bzrlib.errors.ExpandingUnknownOption, bzrlib.errors.FileInWrongBranch, bzrlib.errors.FileOutsideView, bzrlib.errors.FileTimestampUnavailable, bzrlib.errors.ForbiddenControlFileError, bzrlib.errors.GhostRevisionsHaveNoRevno, bzrlib.errors.GhostRevisionUnusableHere, bzrlib.errors.GhostTagsNotSupported, bzrlib.errors.GraphCycleError, bzrlib.errors.HistoryMissing, bzrlib.errors.HookFailed, bzrlib.errors.HpssVfsRequestNotAllowed, bzrlib.errors.IllegalMergeDirectivePayload, bzrlib.errors.IllegalPath, bzrlib.errors.ImmortalLimbo, bzrlib.errors.ImmortalPendingDeletion, bzrlib.errors.IncompatibleAPI, bzrlib.errors.IncompatibleBundleFormat, bzrlib.errors.IncompatibleFormat, bzrlib.errors.IncompatibleRepositories, bzrlib.errors.IncompatibleRevision, bzrlib.errors.InconsistentDelta, bzrlib.errors.InProcessTransport, bzrlib.errors.InternalBzrError, bzrlib.errors.InvalidBugStatus, bzrlib.errors.InvalidBugTrackerURL, bzrlib.errors.InvalidLineInBugsProperty, bzrlib.errors.InvalidPattern, bzrlib.errors.InvalidRevisionId, bzrlib.errors.InvalidRevisionNumber, bzrlib.errors.InvalidRevisionSpec, bzrlib.errors.InvalidShelfId, bzrlib.errors.JailBreak, bzrlib.errors.LocalRequiresBoundBranch, bzrlib.errors.LossyPushToSameVCS, bzrlib.errors.MailClientNotFound, bzrlib.errors.MalformedBugIdentifier, bzrlib.errors.MergeModifiedFormatError, bzrlib.errors.MissingTemplateVariable, bzrlib.errors.MissingText, bzrlib.errors.MustHaveWorkingTree, bzrlib.errors.NoBundleFound, bzrlib.errors.NoColocatedBranchSupport, bzrlib.errors.NoCommonAncestor, bzrlib.errors.NoCommonRoot, bzrlib.errors.NoCompatibleInter, bzrlib.errors.NoDiff, bzrlib.errors.NoDiff3, bzrlib.errors.NoDiffFound, bzrlib.errors.NoEmailInUsername, bzrlib.errors.NoFinalPath, bzrlib.errors.NoHelpTopic, bzrlib.errors.NoMailAddressSpecified, bzrlib.errors.NoMergeSource, bzrlib.errors.NoMessageSupplied, bzrlib.errors.NoPluginAvailable, bzrlib.errors.NoPublicBranch, bzrlib.errors.NoRepositoryPresent, bzrlib.errors.NoRoundtrippingSupport, bzrlib.errors.NoSuchAlias, bzrlib.errors.NoSuchConfig, bzrlib.errors.NoSuchConfigOption, bzrlib.errors.NoSuchExportFormat, bzrlib.errors.NoSuchId, bzrlib.errors.NoSuchRevisionSpec, bzrlib.errors.NoSuchShelfId, bzrlib.errors.NoSuchTag, bzrlib.errors.NoSuchView, bzrlib.errors.NotABundle, bzrlib.errors.NotAMergeDirective, bzrlib.errors.NotAncestor, bzrlib.errors.NotBuilding, bzrlib.errors.NotConflicted, bzrlib.errors.NoTemplate, bzrlib.errors.NotLocalUrl, bzrlib.errors.NotVersionedError, bzrlib.errors.NotWriteLocked, bzrlib.errors.NoWhoami, bzrlib.errors.NoWorkingTree, bzrlib.errors.OptionExpansionLoop, bzrlib.errors.OutOfDateTree, bzrlib.errors.OutSideTransaction, bzrlib.errors.OverwriteBoundBranch, bzrlib.errors.ParseConfigError, bzrlib.errors.PatchMissing, bzrlib.errors.PatchVerificationFailed, bzrlib.errors.PathError, bzrlib.errors.PathsDoNotExist, bzrlib.errors.PathsNotVersionedError, bzrlib.errors.PointlessCommit, bzrlib.errors.PointlessMerge, bzrlib.errors.PublicBranchOutOfDate, bzrlib.errors.RangeInChangeOption, bzrlib.errors.RecursiveBind, bzrlib.errors.RenameFailedFilesExist, bzrlib.errors.RepositoryDataStreamError, bzrlib.errors.ReservedId, bzrlib.errors.RetryWithNewPacks, bzrlib.errors.ReusingTransform, bzrlib.errors.RootNotRich, bzrlib.errors.ShelfCorrupt, bzrlib.errors.SignatureVerificationFailed, bzrlib.errors.SigningFailed, bzrlib.errors.SMTPError, bzrlib.errors.SSHVendorNotFound, bzrlib.errors.StrictCommitFailed 0, bzrlib.errors.SubsumeTargetNeedsUpgrade, bzrlib.errors.TagAlreadyExists, bzrlib.errors.TagsNotSupported, bzrlib.errors.TargetNotBranch, bzrlib.errors.TestamentMismatch, bzrlib.errors.TipChangeRejected, bzrlib.errors.TransformRenameFailed, bzrlib.errors.TransportError, bzrlib.errors.UnableCreateSymlink, bzrlib.errors.UnableEncodePath, bzrlib.errors.UncommittedChanges, bzrlib.errors.UnexpectedSmartServerResponse, bzrlib.errors.UninitializableFormat, bzrlib.errors.UnknownBugTrackerAbbreviation, bzrlib.errors.UnknownErrorFromSmartServer, bzrlib.errors.UnknownFormatError, bzrlib.errors.UnknownHook, bzrlib.errors.UnknownMailClient, bzrlib.errors.UnknownRules, bzrlib.errors.UnknownSSH, bzrlib.errors.UnlistableBranch, bzrlib.errors.UnlistableStore, bzrlib.errors.UnrelatedBranches, bzrlib.errors.UnresumableWriteGroup, bzrlib.errors.UnstackableBranchFormat, bzrlib.errors.UnstackableLocationError, bzrlib.errors.UnstackableRepositoryFormat, bzrlib.errors.UnsupportedFormatError, bzrlib.errors.UnsupportedInventoryKind, bzrlib.errors.UnsupportedKindChange, bzrlib.errors.UnsupportedOperation, bzrlib.errors.UnsupportedTimezoneFormat, bzrlib.errors.UnsuspendableWriteGroup, bzrlib.errors.UpgradeReadonly, bzrlib.errors.UpgradeRequired, bzrlib.errors.UpToDateFormat, bzrlib.errors.UserAbort, bzrlib.errors.VersionedFileError, bzrlib.errors.ViewsNotSupported, bzrlib.errors.WeaveError, bzrlib.errors.WorkingTreeNotRevision, bzrlib.inventory_delta.IncompatibleInventoryDelta, bzrlib.inventory_delta.InventoryDeltaError, bzrlib.merge.PathNotInTree, bzrlib.plugins.launchpad.account.MismatchedUsernames, bzrlib.plugins.launchpad.account.NoRegisteredSSHKeys, bzrlib.plugins.launchpad.account.UnknownLaunchpadUsername, bzrlib.plugins.launchpad.lp_api.NoLaunchpadBranch, bzrlib.plugins.launchpad.lp_registration.InvalidLaunchpadInstance, bzrlib.plugins.launchpad.lp_registration.NotLaunchpadBranch, bzrlib.strace.StraceError, bzrlib.tests.test_errors.ErrorWithBadFormat, bzrlib.tests.test_errors.ErrorWithNoFormat, bzrlib.tests.test_errors.PassThroughError, bzrlib.transform.OrphaningError

Base class for errors raised by bzrlib.
Class Variablesinternal_errorif True this was probably caused by a bzr bug and should be displayed with a traceback; if False (or absent) this was probably a user or environment error and they don't need the gory details. (That can be overridden by -Derror on the command line.)
_fmtFormat string to display the error; this is expanded by the instance's dict.
Method __init__ Construct a new BzrError.
Method __unicode__ Undocumented
Method __str__ Undocumented
Method __repr__ Undocumented
Method __eq__ Undocumented
Method _format Undocumented
Method _get_format_string Return format string for this exception or None
def __init__(self, msg=None, **kwds):
overridden in bzrlib.errors.AlreadyVersionedError, bzrlib.errors.AmbiguousBase, bzrlib.errors.AppendRevisionsOnlyViolation, bzrlib.errors.BadBundle, bzrlib.errors.BadConversionTarget, bzrlib.errors.BadFileKindError, bzrlib.errors.BadFilenameEncoding, bzrlib.errors.BadIndexData, bzrlib.errors.BadIndexDuplicateKey, bzrlib.errors.BadIndexFormatSignature, bzrlib.errors.BadIndexKey, bzrlib.errors.BadIndexOptions, bzrlib.errors.BadIndexValue, bzrlib.errors.BadOptionValue, bzrlib.errors.BadReferenceTarget, bzrlib.errors.BadSubsumeSource, bzrlib.errors.BoundBranchConnectionFailure, bzrlib.errors.BoundBranchOutOfDate, bzrlib.errors.BranchError, bzrlib.errors.BundleNotSupported, bzrlib.errors.BzrBadParameter, bzrlib.errors.BzrCheckError, bzrlib.errors.BzrDirError, bzrlib.errors.BzrMoveFailedError, bzrlib.errors.BzrNewError, bzrlib.errors.BzrRemoveChangedFilesError, bzrlib.errors.CannotBindAddress, bzrlib.errors.CannotCommitSelectedFileMerge, bzrlib.errors.CommitToDoubleBoundBranch, bzrlib.errors.ConfigContentError, bzrlib.errors.ConfigOptionValueError, bzrlib.errors.ContainerHasExcessDataError, bzrlib.errors.CorruptDirstate, bzrlib.errors.CorruptRepository, bzrlib.errors.DecompressCorruption, bzrlib.errors.DependencyNotPresent, bzrlib.errors.DirstateCorrupt, bzrlib.errors.DisabledMethod, bzrlib.errors.DivergedBranches, bzrlib.errors.DuplicateFileId, bzrlib.errors.DuplicateHelpPrefix, bzrlib.errors.DuplicateRecordNameError, bzrlib.errors.ErrorFromSmartServer, bzrlib.errors.ExcludesUnsupported, bzrlib.errors.ExecutableMissing, bzrlib.errors.ExistingLimbo, bzrlib.errors.ExistingPendingDeletion, bzrlib.errors.ExpandingUnknownOption, bzrlib.errors.FileInWrongBranch, bzrlib.errors.FileOutsideView, bzrlib.errors.FileTimestampUnavailable, bzrlib.errors.GhostRevisionsHaveNoRevno, bzrlib.errors.GhostRevisionUnusableHere, bzrlib.errors.GhostTagsNotSupported, bzrlib.errors.GraphCycleError, bzrlib.errors.HookFailed, bzrlib.errors.HpssVfsRequestNotAllowed, bzrlib.errors.IllegalMergeDirectivePayload, bzrlib.errors.IllegalPath, bzrlib.errors.IllegalUseOfScopeReplacer, bzrlib.errors.ImmortalLimbo, bzrlib.errors.ImmortalPendingDeletion, bzrlib.errors.ImportNameCollision, bzrlib.errors.IncompatibleAPI, bzrlib.errors.IncompatibleBundleFormat, bzrlib.errors.IncompatibleFormat, bzrlib.errors.IncompatibleRepositories, bzrlib.errors.IncompatibleRevision, bzrlib.errors.InconsistentDelta, bzrlib.errors.InProcessTransport, bzrlib.errors.InvalidBugStatus, bzrlib.errors.InvalidBugTrackerURL, bzrlib.errors.InvalidEntryName, bzrlib.errors.InvalidImportLine, bzrlib.errors.InvalidLineInBugsProperty, bzrlib.errors.InvalidLocationAlias, bzrlib.errors.InvalidPattern, bzrlib.errors.InvalidRecordError, bzrlib.errors.InvalidRevisionId, bzrlib.errors.InvalidRevisionNumber, bzrlib.errors.InvalidRevisionSpec, bzrlib.errors.InvalidShelfId, bzrlib.errors.InventoryModified, bzrlib.errors.JailBreak, bzrlib.errors.KnitCorrupt, bzrlib.errors.KnitDataStreamIncompatible, bzrlib.errors.KnitDataStreamUnknown, bzrlib.errors.KnitHeaderError, bzrlib.errors.KnitIndexUnknownMethod, bzrlib.errors.LockError, bzrlib.errors.LossyPushToSameVCS, bzrlib.errors.MailClientNotFound, bzrlib.errors.MalformedBugIdentifier, bzrlib.errors.MediumNotConnected, bzrlib.errors.MissingTemplateVariable, bzrlib.errors.MissingText, bzrlib.errors.MustHaveWorkingTree, bzrlib.errors.NoBundleFound, bzrlib.errors.NoColocatedBranchSupport, bzrlib.errors.NoCommonAncestor, bzrlib.errors.NoCommonRoot, bzrlib.errors.NoCompatibleInter, bzrlib.errors.NoDiff, bzrlib.errors.NoDiffFound, bzrlib.errors.NoEmailInUsername, bzrlib.errors.NoFinalPath, bzrlib.errors.NoHelpTopic, bzrlib.errors.NoPublicBranch, bzrlib.errors.NoRepositoryPresent, bzrlib.errors.NoRoundtrippingSupport, bzrlib.errors.NoSmartMedium, bzrlib.errors.NoSuchAlias, bzrlib.errors.NoSuchConfig, bzrlib.errors.NoSuchConfigOption, bzrlib.errors.NoSuchExportFormat, bzrlib.errors.NoSuchId, bzrlib.errors.NoSuchRevision, bzrlib.errors.NoSuchRevisionSpec, bzrlib.errors.NoSuchShelfId, bzrlib.errors.NoSuchTag, bzrlib.errors.NoSuchView, bzrlib.errors.NotABundle, bzrlib.errors.NotAMergeDirective, bzrlib.errors.NotAncestor, bzrlib.errors.NotConflicted, bzrlib.errors.NotLefthandHistory, bzrlib.errors.NotLocalUrl, bzrlib.errors.NotVersionedError, bzrlib.errors.NotWriteLocked, bzrlib.errors.NoWorkingTree, bzrlib.errors.OptionExpansionLoop, bzrlib.errors.OutOfDateTree, bzrlib.errors.OverwriteBoundBranch, bzrlib.errors.ParseConfigError, bzrlib.errors.PatchMissing, bzrlib.errors.PathError, bzrlib.errors.PathsDoNotExist, bzrlib.errors.PathsNotVersionedError, bzrlib.errors.PublicBranchOutOfDate, bzrlib.errors.ReadingCompleted, bzrlib.errors.RecursiveBind, bzrlib.errors.RenameFailedFilesExist, bzrlib.errors.RepositoryDataStreamError, bzrlib.errors.ReservedId, bzrlib.errors.RetryWithNewPacks, bzrlib.errors.RevisionAlreadyPresent, bzrlib.errors.RevisionNotPresent, bzrlib.errors.SignatureVerificationFailed, bzrlib.errors.SigningFailed, bzrlib.errors.SmartMessageHandlerError, bzrlib.errors.SMTPError, bzrlib.errors.SubsumeTargetNeedsUpgrade, bzrlib.errors.TagAlreadyExists, bzrlib.errors.TagsNotSupported, bzrlib.errors.TargetNotBranch, bzrlib.errors.TestamentMismatch, bzrlib.errors.TipChangeRejected, bzrlib.errors.TooManyConcurrentRequests, bzrlib.errors.TransformRenameFailed, bzrlib.errors.TransportError, bzrlib.errors.UnableCreateSymlink, bzrlib.errors.UnableEncodePath, bzrlib.errors.UnavailableRepresentation, bzrlib.errors.UncommittedChanges, bzrlib.errors.UnexpectedInventoryFormat, bzrlib.errors.UnexpectedSmartServerResponse, bzrlib.errors.UninitializableFormat, bzrlib.errors.UnknownBugTrackerAbbreviation, bzrlib.errors.UnknownContainerFormatError, bzrlib.errors.UnknownErrorFromSmartServer, bzrlib.errors.UnknownFormatError, bzrlib.errors.UnknownHook, bzrlib.errors.UnknownMailClient, bzrlib.errors.UnknownRecordTypeError, bzrlib.errors.UnknownRules, bzrlib.errors.UnknownSmartMethod, bzrlib.errors.UnknownSSH, bzrlib.errors.UnlistableBranch, bzrlib.errors.UnlistableStore, bzrlib.errors.UnresumableWriteGroup, bzrlib.errors.UnsetLocationAlias, bzrlib.errors.UnstackableBranchFormat, bzrlib.errors.UnstackableLocationError, bzrlib.errors.UnstackableRepositoryFormat, bzrlib.errors.UnsupportedInventoryKind, bzrlib.errors.UnsupportedKindChange, bzrlib.errors.UnsupportedOperation, bzrlib.errors.UnsupportedTimezoneFormat, bzrlib.errors.UnsuspendableWriteGroup, bzrlib.errors.UpgradeRequired, bzrlib.errors.UpToDateFormat, bzrlib.errors.ViewsNotSupported, bzrlib.errors.WeaveError, bzrlib.errors.WorkingTreeAlreadyPopulated, bzrlib.errors.WorkingTreeNotRevision, bzrlib.errors.WritingCompleted, bzrlib.errors.WritingNotComplete, bzrlib.merge.PathNotInTree, bzrlib.plugins.launchpad.lp_api.NoLaunchpadBranch, bzrlib.plugins.launchpad.lp_registration.InvalidLaunchpadInstance, bzrlib.plugins.launchpad.lp_registration.NotLaunchpadBranch, bzrlib.repository.IsInWriteGroupError, bzrlib.tests.test_errors.PassThroughError, bzrlib.transform.OrphaningError
Construct a new BzrError.

There are two alternative forms for constructing these objects. Either a preformatted string may be passed, or a set of named arguments can be given. The first is for generic "user" errors which are not intended to be caught and so do not need a specific subclass. The second case is for use with subclasses that provide a _fmt format string to print the arguments.

Keyword arguments are taken as parameters to the error, which can be inserted into the format string template. It's recommended that subclasses override the __init__ method to require specific parameters.

ParametersmsgIf given, this is the literal complete text for the error, not subject to expansion. 'msg' is used instead of 'message' because python evolved and, in 2.6, forbids the use of 'message'.
def _format(self):
Undocumented
def __unicode__(self):
Undocumented
def __str__(self):
Undocumented
def __repr__(self):
Undocumented
def _get_format_string(self):
Return format string for this exception or None
def __eq__(self, other):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2019-07-18 00:29:27.