]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/utils/arrays/class_ArrayUtils.php
Continued:
[core.git] / framework / main / classes / utils / arrays / class_ArrayUtils.php
index bb28ff037ca55126e388948306a7e5993c90b326..56447d988b02d960508af7391f1496706cdeb3e6 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Utils\Arrays;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
 
 // Import SPL stuff
@@ -56,10 +57,10 @@ final class ArrayUtils extends BaseFrameworkSystem {
                // Validate parameters
                if (count($numericArray) == 0) {
                        // Throw IAE
-                       throw new InvalidArgumentException('Array "numericArray" is empty');
+                       throw new InvalidArgumentException('Array "numericArray" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
                } elseif (count($mapping) == 0) {
                        // Throw it again
-                       throw new InvalidArgumentException('Array "mapping" is empty');
+                       throw new InvalidArgumentException('Array "mapping" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
                } elseif (count($numericArray) != count($mapping)) {
                        // Throw it yet again
                        throw new InvalidArgumentException(sprintf('numericArray()=%d does not match mapping()=%d', count($numericArray), count($mapping)));