~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-29 21:35:05 UTC
  • mfrom: (4576 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4577.
  • Revision ID: john@arbash-meinel.com-20090729213505-tkqsvy1zfpocu75w
Merge bzr.dev 4576 in prep for NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
2006
2006
 
2007
2007
class BadConversionTarget(BzrError):
2008
2008
 
2009
 
    _fmt = "Cannot convert from format %(from_format)s to format %(format)s." \
2010
 
            "    %(problem)s"
 
2009
    _fmt = "Cannot convert to format %(format)s.  %(problem)s"
2011
2010
 
2012
 
    def __init__(self, problem, format, from_format=None):
 
2011
    def __init__(self, problem, format):
2013
2012
        BzrError.__init__(self)
2014
2013
        self.problem = problem
2015
2014
        self.format = format
2016
 
        self.from_format = from_format or '(unspecified)'
2017
2015
 
2018
2016
 
2019
2017
class NoDiffFound(BzrError):