Revision 2377e7c2 snf-astakos-client/astakosclient/errors.py

b/snf-astakos-client/astakosclient/errors.py
63 63
    def __init__(self, message):
64 64
        """404 Not Found"""
65 65
        super(NotFound, self).__init__(message, 404)
66

  
67

  
68
class NoDisplayName(AstakosClientException):
69
    def __init__(self, uuid):
70
        """No display name for the given uuid"""
71
        message = "No display name for the given uuid: %s" % uuid
72
        super(NoDisplayName, self).__init__(message)
73

  
74

  
75
class NoUUID(AstakosClientException):
76
    def __init__(self, display_name):
77
        """No uuid for the given display name"""
78
        message = "No uuid for the given display name: %s" % display_name
79
        super(NoUUID, self).__init__(message)

Also available in: Unified diff