~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2006-01-30 11:55:34 UTC
  • mfrom: (1185.62.24 bzr-jam-pending)
  • Revision ID: mbp@sourcefrog.net-20060130115534-d9ca79b5856a08fa
[merge] jam-pending small fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
492
492
 
493
493
class BzrBadParameterNotString(BzrBadParameter):
494
494
    """Parameter %(param)s is not a string or unicode string."""
 
495
 
 
496
 
 
497
class DependencyNotPresent(BzrNewError):
 
498
    """Unable to import library: %(library)s, %(error)s"""
 
499
 
 
500
    def __init__(self, library, error):
 
501
        BzrNewError.__init__(self, library=library, error=error)
 
502
 
 
503
 
 
504
class ParamikoNotPresent(DependencyNotPresent):
 
505
    """Unable to import paramiko (required for sftp support): %(error)s"""
 
506
 
 
507
    def __init__(self, error):
 
508
        DependencyNotPresent.__init__(self, 'paramiko', error)
 
509
 
 
510