summaryrefslogtreecommitdiffstats
path: root/Acl/Exception
diff options
context:
space:
mode:
authorJohannes Schmitt <schmittjoh@gmail.com>2010-12-14 16:43:40 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2010-12-31 09:25:53 +0100
commit3bd275eddbee11dbc787eecf73c3b62fce815cbc (patch)
treee1e5727a201fb4b420a28ebb1cbec9ddd0ce1448 /Acl/Exception
parent5853e1f130f888bfe2e5e5830ed930218cfe693b (diff)
downloadsymfony-security-3bd275eddbee11dbc787eecf73c3b62fce815cbc.zip
symfony-security-3bd275eddbee11dbc787eecf73c3b62fce815cbc.tar.gz
symfony-security-3bd275eddbee11dbc787eecf73c3b62fce815cbc.tar.bz2
added ACL system to the Security Component
Diffstat (limited to 'Acl/Exception')
-rw-r--r--Acl/Exception/AclAlreadyExistsException.php22
-rw-r--r--Acl/Exception/AclNotFoundException.php22
-rw-r--r--Acl/Exception/ConcurrentModificationException.php13
-rw-r--r--Acl/Exception/Exception.php21
-rw-r--r--Acl/Exception/InvalidDomainObjectException.php13
-rw-r--r--Acl/Exception/NoAceFoundException.php22
-rw-r--r--Acl/Exception/SidNotLoadedException.php22
7 files changed, 135 insertions, 0 deletions
diff --git a/Acl/Exception/AclAlreadyExistsException.php b/Acl/Exception/AclAlreadyExistsException.php
new file mode 100644
index 0000000..223b52c
--- /dev/null
+++ b/Acl/Exception/AclAlreadyExistsException.php
@@ -0,0 +1,22 @@
+<?php
+
+namespace Symfony\Component\Security\Acl\Exception;
+
+/*
+ * This file is part of the Symfony framework.
+ *
+ * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
+/**
+ * This exception is thrown when someone tries to create an ACL for an object
+ * identity that already has one.
+ *
+ * @author Johannes M. Schmitt <schmittjoh@gmail.com>
+ */
+class AclAlreadyExistsException extends Exception
+{
+} \ No newline at end of file
diff --git a/Acl/Exception/AclNotFoundException.php b/Acl/Exception/AclNotFoundException.php
new file mode 100644
index 0000000..140e739
--- /dev/null
+++ b/Acl/Exception/AclNotFoundException.php
@@ -0,0 +1,22 @@
+<?php
+
+namespace Symfony\Component\Security\Acl\Exception;
+
+/*
+ * This file is part of the Symfony framework.
+ *
+ * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
+/**
+ * This exception is thrown when we cannot locate an ACL for a passed
+ * ObjectIdentity implementation.
+ *
+ * @author Johannes M. Schmitt <schmittjoh@gmail.com>
+ */
+class AclNotFoundException extends Exception
+{
+} \ No newline at end of file
diff --git a/Acl/Exception/ConcurrentModificationException.php b/Acl/Exception/ConcurrentModificationException.php
new file mode 100644
index 0000000..fd65c2b
--- /dev/null
+++ b/Acl/Exception/ConcurrentModificationException.php
@@ -0,0 +1,13 @@
+<?php
+
+namespace Symfony\Component\Security\Acl\Exception;
+
+/**
+ * This exception is thrown whenever you change shared properties of more than
+ * one ACL of the same class type concurrently.
+ *
+ * @author Johannes M. Schmitt <schmittjoh@gmail.com>
+ */
+class ConcurrentModificationException extends Exception
+{
+} \ No newline at end of file
diff --git a/Acl/Exception/Exception.php b/Acl/Exception/Exception.php
new file mode 100644
index 0000000..0e0add3
--- /dev/null
+++ b/Acl/Exception/Exception.php
@@ -0,0 +1,21 @@
+<?php
+
+namespace Symfony\Component\Security\Acl\Exception;
+
+/*
+ * This file is part of the Symfony framework.
+ *
+ * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
+/**
+ * Base ACL exception
+ *
+ * @author Johannes M. Schmitt <schmittjoh@gmail.com>
+ */
+class Exception extends \Exception
+{
+} \ No newline at end of file
diff --git a/Acl/Exception/InvalidDomainObjectException.php b/Acl/Exception/InvalidDomainObjectException.php
new file mode 100644
index 0000000..12f0b9a
--- /dev/null
+++ b/Acl/Exception/InvalidDomainObjectException.php
@@ -0,0 +1,13 @@
+<?php
+
+namespace Symfony\Component\Security\Acl\Exception;
+
+/**
+ * This exception is thrown when ObjectIdentity fails to construct an object
+ * identity from the passed domain object.
+ *
+ * @author Johannes M. Schmitt <schmittjoh@gmail.com>
+ */
+class InvalidDomainObjectException extends Exception
+{
+} \ No newline at end of file
diff --git a/Acl/Exception/NoAceFoundException.php b/Acl/Exception/NoAceFoundException.php
new file mode 100644
index 0000000..788be2a
--- /dev/null
+++ b/Acl/Exception/NoAceFoundException.php
@@ -0,0 +1,22 @@
+<?php
+
+namespace Symfony\Component\Security\Acl\Exception;
+
+/*
+ * This file is part of the Symfony framework.
+ *
+ * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
+/**
+ * This exception is thrown when we cannot locate an ACE that matches the
+ * combination of permission masks and security identities.
+ *
+ * @author Johannes M. Schmitt <schmittjoh@gmail.com>
+ */
+class NoAceFoundException extends Exception
+{
+} \ No newline at end of file
diff --git a/Acl/Exception/SidNotLoadedException.php b/Acl/Exception/SidNotLoadedException.php
new file mode 100644
index 0000000..c856dce
--- /dev/null
+++ b/Acl/Exception/SidNotLoadedException.php
@@ -0,0 +1,22 @@
+<?php
+
+namespace Symfony\Component\Security\Acl\Exception;
+
+/*
+ * This file is part of the Symfony framework.
+ *
+ * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
+/**
+ * This exception is thrown when ACEs for an SID are requested which has not
+ * been loaded from the database.
+ *
+ * @author Johannes M. Schmitt <schmittjoh@gmail.com>
+ */
+class SidNotLoadedException extends Exception
+{
+} \ No newline at end of file