]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/lists/class_BaseList.php
Continued:
[core.git] / framework / main / classes / lists / class_BaseList.php
index 0e581e8a6697f1b5858e0aee44dd25cf034bbff3..22aba2d3acb83b51b64903751789141a2d5296d6 100644 (file)
@@ -113,7 +113,7 @@ abstract class BaseList extends BaseFrameworkSystem implements IteratorAggregate
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-LIST: groupName=%s - CALLED!', $groupName));
                if (empty($groupName)) {
                        // Throw IAE
-                       throw new InvalidArgumentException('Parameter "groupName" is empty');
+                       throw new InvalidArgumentException('Parameter "groupName" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
                }
 
                // Check on existence ...
@@ -132,7 +132,7 @@ abstract class BaseList extends BaseFrameworkSystem implements IteratorAggregate
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-LIST: groupName=%s - CALLED!', $groupName));
                if (empty($groupName)) {
                        // Throw IAE
-                       throw new InvalidArgumentException('Parameter "groupName" is empty');
+                       throw new InvalidArgumentException('Parameter "groupName" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
                } elseif ($this->isGroupSet($groupName)) {
                        // Throw the exception here
                        throw new BadMethodCallException(sprintf('groupName=%s is already set', $groupName), self::EXCEPTION_GROUP_ALREADY_ADDED);
@@ -157,10 +157,10 @@ abstract class BaseList extends BaseFrameworkSystem implements IteratorAggregate
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-LIST: groupName=' . $groupName  . ',subGroup=' . $subGroup . ',visitableInstance=' . $visitableInstance->__toString() . ' - CALLED!');
                if (empty($groupName)) {
                        // Throw IAE
-                       throw new InvalidArgumentException('Parameter "groupName" is empty');
+                       throw new InvalidArgumentException('Parameter "groupName" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
                } elseif (empty($subGroup)) {
                        // Throw it again
-                       throw new InvalidArgumentException('Parameter "subGroup" is empty');
+                       throw new InvalidArgumentException('Parameter "subGroup" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
                } elseif (!$this->isGroupSet($groupName)) {
                        // Throw the exception here
                        throw new BadMethodCallException(sprintf('groupName=%s is not a valid group', $groupName), self::EXCEPTION_GROUP_NOT_FOUND);
@@ -198,7 +198,7 @@ abstract class BaseList extends BaseFrameworkSystem implements IteratorAggregate
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-LIST: groupName[' . gettype($groupName) . ']=' . $groupName . ' - CALLED!');
                if (empty($groupName)) {
                        // Throw IAE
-                       throw new InvalidArgumentException('Parameter "groupName" is empty');
+                       throw new InvalidArgumentException('Parameter "groupName" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
                } elseif (!$this->isGroupSet($groupName)) {
                        // Throw the exception here
                        throw new BadMethodCallException(sprintf('groupName=%s is not a valid group', $groupName), self::EXCEPTION_GROUP_NOT_FOUND);
@@ -243,7 +243,7 @@ abstract class BaseList extends BaseFrameworkSystem implements IteratorAggregate
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-LIST: groupName=' . $groupName . ' - CALLED!');
                if (empty($groupName)) {
                        // Throw IAE
-                       throw new InvalidArgumentException('Parameter "groupName" is empty');
+                       throw new InvalidArgumentException('Parameter "groupName" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
                } elseif (!$this->isGroupSet($groupName)) {
                        // Throw the exception here
                        throw new BadMethodCallException(sprintf('groupName=%s is not a valid group', $groupName), self::EXCEPTION_GROUP_NOT_FOUND);
@@ -281,7 +281,7 @@ abstract class BaseList extends BaseFrameworkSystem implements IteratorAggregate
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-LIST: groupName=' . $groupName . ' - CALLED!');
                if (empty($groupName)) {
                        // Throw IAE
-                       throw new InvalidArgumentException('Parameter "groupName" is empty');
+                       throw new InvalidArgumentException('Parameter "groupName" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
                } elseif (!$this->isGroupSet($groupName)) {
                        // Throw the exception here
                        throw new BadMethodCallException(sprintf('groupName=%s is not a valid group', $groupName), self::EXCEPTION_GROUP_NOT_FOUND);
@@ -377,7 +377,7 @@ abstract class BaseList extends BaseFrameworkSystem implements IteratorAggregate
                // Does this group exist?
                if (empty($groupName)) {
                        // Throw IAE
-                       throw new InvalidArgumentException('Parameter "groupName" is empty');
+                       throw new InvalidArgumentException('Parameter "groupName" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
                } elseif (!$this->isGroupSet($groupName)) {
                        // Throw the exception here
                        throw new BadMethodCallException(sprintf('groupName=%s is not a valid group', $groupName), self::EXCEPTION_GROUP_NOT_FOUND);
@@ -410,7 +410,7 @@ abstract class BaseList extends BaseFrameworkSystem implements IteratorAggregate
                // Validate parameter
                if (empty($hash)) {
                        // Throw IAE
-                       throw new InvalidArgumentException('Parameter "hash" is empty');
+                       throw new InvalidArgumentException('Parameter "hash" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
                } elseif (!isset($this->cache['is_valid'][$hash])) {
                        // Check it
                        $this->cache['is_valid'][$hash] = ((in_array($hash, $this->listIndex)) && (isset($this->listEntries[$hash])));
@@ -470,7 +470,7 @@ abstract class BaseList extends BaseFrameworkSystem implements IteratorAggregate
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-LIST: groupName=%s - CALLED!', $groupName));
                if (empty($groupName)) {
                        // Throw IAE
-                       throw new InvalidArgumentException('Parameter "groupName" is empty');
+                       throw new InvalidArgumentException('Parameter "groupName" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
                } elseif (!$this->isGroupSet($groupName)) {
                        // Throw the exception here
                        throw new BadMethodCallException(sprintf('groupName=%s is not a valid group', $groupName), self::EXCEPTION_GROUP_NOT_FOUND);
@@ -517,7 +517,7 @@ abstract class BaseList extends BaseFrameworkSystem implements IteratorAggregate
                // Is the hash valid?
                if (empty($hash)) {
                        // Throw IAE
-                       throw new InvalidArgumentException('Parameter "hash" is empty');
+                       throw new InvalidArgumentException('Parameter "hash" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
                } elseif (!$this->isHashValid($hash)) {
                        // Throw an exception here, hashIndex is unknown at this point
                        throw new InvalidListHashException(array($this, $hash, -999), self::EXCEPTION_INVALID_HASH);