1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-06-15 07:10:01 +02:00
ldapcherry/ldapcherry/exceptions.py

25 lines
590 B
Python
Raw Normal View History

2015-04-15 21:13:14 +02:00
# -*- coding: utf-8 -*-
# vim:set expandtab tabstop=4 shiftwidth=4:
#
# The MIT License (MIT)
# LdapCherry
# Copyright (c) 2014 Carpentier Pierre-Francois
2015-04-15 23:10:01 +02:00
class MissingParameter(Exception):
def __init__(self, section, key):
self.section = section
self.key = key
2015-05-12 01:24:16 +02:00
class MissingKey(Exception):
def __init__(self, key):
self.key = key
class DumplicateRoleKey(Exception):
def __init__(self, role):
self.role = role
class DumplicateRoleContent(Exception):
def __init__(self, role1, role2):
self.role1 = role1
self.role2 = role2