~hazmat/pyjuju/auto-magic-dependency-spec

« back to all changes in this revision

Viewing changes to ensemble/state/errors.py

  • Committer: kapil.thangavelu at canonical
  • Date: 2011-02-28 07:04:13 UTC
  • mfrom: (146.3.11 unit-state-debug)
  • Revision ID: kapil.thangavelu@canonical.com-20110228070413-lvg2w600hqsu29u6
unit state debug hook settings (r/w/watch) [r=niemeyer][f=723842]

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
               self.unit_name
128
128
 
129
129
 
 
130
class ServiceUnitDebugAlreadyEnabled(StateError):
 
131
    """The unit already is in debug mode.
 
132
    """
 
133
 
 
134
    def __init__(self, unit_name):
 
135
        self.unit_name = unit_name
 
136
 
 
137
    def __str__(self):
 
138
        return "Service unit %r is already in debug mode." % \
 
139
            self.unit_name
 
140
 
 
141
 
130
142
class RelationAlreadyExists(StateError):
131
143
 
132
144
    def __init__(self, *endpoints):