~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Robert Collins
  • Date: 2007-04-20 00:14:15 UTC
  • mto: This revision was merged to the branch mainline in revision 2441.
  • Revision ID: robertc@robertcollins.net-20070420001415-iequi10ao2s4jtu4
Add an explicit error for missing help topics.

Show diffs side-by-side

added added

removed removed

Lines of Context:
223
223
    def __init__(self, revision_id):
224
224
        self.revision_id = revision_id
225
225
 
 
226
 
 
227
class NoHelpTopic(BzrError):
 
228
 
 
229
    _fmt = ("No help could be found for '%(topic)s'. "
 
230
        "Please use 'bzr help topics' to obtain a list of topics.")
 
231
 
 
232
    def __init__(self, topic):
 
233
        self.topic = topic
 
234
 
 
235
 
226
236
class NoSuchId(BzrError):
227
237
 
228
238
    _fmt = "The file id %(file_id)s is not present in the tree %(tree)s."