diff --git a/ldapcherry/exceptions.py b/ldapcherry/exceptions.py index c249d76..da37cbc 100644 --- a/ldapcherry/exceptions.py +++ b/ldapcherry/exceptions.py @@ -196,6 +196,16 @@ " 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