~hazmat/pyjuju/proposed-support

« back to all changes in this revision

Viewing changes to juju/errors.py

  • Committer: kapil.thangavelu at canonical
  • Date: 2012-05-22 22:08:15 UTC
  • mfrom: (484.1.53 trunk)
  • Revision ID: kapil.thangavelu@canonical.com-20120522220815-acyt8m89i9ybe0w1
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
 
197
197
class ServiceError(JujuError):
198
198
    """Some problem with an upstart service"""
 
199
 
 
200
class SSLVerificationError(JujuError):
 
201
    """An SSL endpoint failed verification"""
 
202
 
 
203
    def __init__(self, endpoint):
 
204
        self.endpoint = endpoint
 
205
 
 
206
    def __str__(self):
 
207
        return "%s: %s" % (SSLVerificationError.__doc__, 
 
208
                self.endpoint)