adding exception for user already existing in backend

This commit is contained in:
kakwa 2015-07-18 12:02:00 +02:00
parent f0a19ba3e9
commit 6ad6f8ce5c
1 changed files with 10 additions and 0 deletions

View File

@ -196,6 +196,16 @@ class UserDoesntExist(Exception):
" in backend '" + backend + "'"
class UserAlreadyExists(Exception):
def __init__(self, user, backend):
self.user = user
self.bakend = backend
self.log = \
"user '" + user + "'" \
" already exists" \
" in backend '" + backend + "'"
class GroupDoesntExist(Exception):
def __init__(self, group, backend):
self.group = group