Repository :
http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
---------------------------------------------------------------
commit 59fd3b5259726afdb71ffae3bc3659f1f2e2d365
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Fri Nov 9 17:28:30 2012 +0100
Create different exception used when added a meeting to the database
---------------------------------------------------------------
fedocal/fedocallib/exceptions.py | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/fedocal/fedocallib/exceptions.py b/fedocal/fedocallib/exceptions.py
new file mode 100644
index 0000000..68587d0
--- /dev/null
+++ b/fedocal/fedocallib/exceptions.py
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+
+"""
+exceptions - Different Exceptions classes used in the project.
+
+Copyright (C) 2012 Pierre-Yves Chibon
+Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
+
+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 (at
+your option) any later version.
+See
http://www.gnu.org/copyleft/gpl.html for the full text of the
+license.
+"""
+
+# pylint: disable=R0903
+class FedocalException(Exception):
+ """ Exception thrown when a user is not allowed to perform a specific
+ action.
+ """
+ pass
+
+
+# pylint: disable=R0903
+class UserNotAllowed(FedocalException):
+ """ Exception thrown when a user is not allowed to perform a specific
+ action.
+ """
+ pass
+
+
+# pylint: disable=R0903
+class InvalidMeeting(FedocalException):
+ """ Exception thrown when a user is not allowed to perform a specific
+ action.
+ """
+ pass