~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Daniel Watkins
  • Date: 2009-02-09 23:26:58 UTC
  • mto: (3999.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 4000.
  • Revision ID: daniel@daniel-watkins.co.uk-20090209232658-npfcqo2ryr5tx414
Added InvalidShelfId error and accompanying test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2934
2934
        BzrError.__init__(self, shelf_id=shelf_id)
2935
2935
 
2936
2936
 
 
2937
class InvalidShelfId(BzrError):
 
2938
 
 
2939
    _fmt = '"%(invalid_id)s" is not a valid shelf id.'
 
2940
 
 
2941
    def __init__(self, invalid_id):
 
2942
        BzrError.__init__(self, invalid_id=invalid_id)
 
2943
 
 
2944
 
2937
2945
class UserAbort(BzrError):
2938
2946
 
2939
2947
    _fmt = 'The user aborted the operation.'