/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2009-07-27 05:38:00 UTC
  • mto: This revision was merged to the branch mainline in revision 4587.
  • Revision ID: mbp@sourcefrog.net-20090727053800-bgnhmzzgo0u0314s
Remove tests for deleted LockableFiles methods

Show diffs side-by-side

added added

removed removed

Lines of Context:
793
793
 
794
794
 
795
795
class IncompatibleRepositories(BzrError):
796
 
    """Report an error that two repositories are not compatible.
797
 
 
798
 
    Note that the source and target repositories are permitted to be strings:
799
 
    this exception is thrown from the smart server and may refer to a
800
 
    repository the client hasn't opened.
801
 
    """
802
796
 
803
797
    _fmt = "%(target)s\n" \
804
798
            "is not compatible with\n" \
2012
2006
 
2013
2007
class BadConversionTarget(BzrError):
2014
2008
 
2015
 
    _fmt = "Cannot convert from format %(from_format)s to format %(format)s." \
2016
 
            "    %(problem)s"
 
2009
    _fmt = "Cannot convert to format %(format)s.  %(problem)s"
2017
2010
 
2018
 
    def __init__(self, problem, format, from_format=None):
 
2011
    def __init__(self, problem, format):
2019
2012
        BzrError.__init__(self)
2020
2013
        self.problem = problem
2021
2014
        self.format = format
2022
 
        self.from_format = from_format or '(unspecified)'
2023
2015
 
2024
2016
 
2025
2017
class NoDiffFound(BzrError):
2926
2918
    _fmt = 'Cannot bind address "%(host)s:%(port)i": %(orig_error)s.'
2927
2919
 
2928
2920
    def __init__(self, host, port, orig_error):
2929
 
        # nb: in python2.4 socket.error doesn't have a useful repr
2930
2921
        BzrError.__init__(self, host=host, port=port,
2931
 
            orig_error=repr(orig_error.args))
 
2922
            orig_error=orig_error[1])
2932
2923
 
2933
2924
 
2934
2925
class UnknownRules(BzrError):