diff --git a/rhodecode/lib/exceptions.py b/rhodecode/lib/exceptions.py --- a/rhodecode/lib/exceptions.py +++ b/rhodecode/lib/exceptions.py @@ -1,8 +1,15 @@ -#!/usr/bin/env python -# encoding: utf-8 -# Custom Exceptions modules -# Copyright (C) 2009-2010 Marcin Kuzminski -# +# -*- coding: utf-8 -*- +""" + rhodecode.lib.exceptions + ~~~~~~~~~~~~~~~~~~~~~~~~ + + Custom Exceptions modules + + :created_on: Apr 10, 2010 + :author: marcink + :copyright: (C) 2009-2011 Marcin Kuzminski + :license: GPLv3, see COPYING for more details. +""" # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or @@ -15,16 +22,27 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -""" -Created on Nov 17, 2010 -Custom Exceptions modules -@author: marcink -""" + + +class LdapUsernameError(Exception): + pass + + +class LdapPasswordError(Exception): + pass + -class LdapUsernameError(Exception):pass -class LdapPasswordError(Exception):pass -class LdapConnectionError(Exception):pass -class LdapImportError(Exception):pass +class LdapConnectionError(Exception): + pass + + +class LdapImportError(Exception): + pass -class DefaultUserException(Exception):pass -class UserOwnsReposException(Exception):pass + +class DefaultUserException(Exception): + pass + + +class UserOwnsReposException(Exception): + pass