// Import framework stuff
use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
// Import SPL stuff
// 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)));