]> 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 48b0c581462f40b5c257dc9453bc05074ae219a3..884a29f3c50cb1a1e09e0d409295e38f5c3a67ad 100644 (file)
@@ -76,7 +76,7 @@ final class ArrayUtils extends BaseFrameworkSystem {
                        //* NOISY-DEBUG */ self::createDebugInstance(__CLASS__, __LINE__)->debugMessage(sprintf('ARRAY-UTILS: sourceIndex=%d,targetName=%s', $sourceIndex, $targetName));
                        if (!array_key_exists($sourceIndex, $numericArray)) {
                                // Should always be there!
-                               throw new OutOfBoundsException(sprintf('numericArray[%d] does not exist.', $sourceIndex));
+                               throw new OutOfBoundsException(sprintf('numericArray[%d] does not exist.', $sourceIndex), FrameworkInterface::EXCEPTION_OUT_OF_BOUNDS);
                        }
 
                        // "Map" (copy) it to new array