/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: Aaron Bentley
  • Date: 2009-09-29 04:40:55 UTC
  • mfrom: (4717 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4718.
  • Revision ID: aaron@aaronbentley.com-20090929044055-e9jtpmz6eyut711h
Merged bzr.dev into fix_get_mtime.

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
    """
796
802
 
797
803
    _fmt = "%(target)s\n" \
798
804
            "is not compatible with\n" \
2920
2926
    _fmt = 'Cannot bind address "%(host)s:%(port)i": %(orig_error)s.'
2921
2927
 
2922
2928
    def __init__(self, host, port, orig_error):
 
2929
        # nb: in python2.4 socket.error doesn't have a useful repr
2923
2930
        BzrError.__init__(self, host=host, port=port,
2924
 
            orig_error=orig_error[1])
 
2931
            orig_error=repr(orig_error.args))
2925
2932
 
2926
2933
 
2927
2934
class UnknownRules(BzrError):