// Import framework stuff
use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
use Org\Mxchange\CoreFramework\Criteria\Search\SearchCriteria;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
use Org\Mxchange\CoreFramework\Utils\Strings\StringUtils;
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-CRITERIA: criteriaType=%s - CALLED!', strtoupper($criteriaType), $criteriaType));
if (empty($criteriaType)) {
// Throw it again
- throw new InvalidArgumentException('Parameter "criteriaType" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaType" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif (!in_array($criteriaType, self::$CRITERIA_TYPES)) {
// Throw it again
throw new InvalidArgumentException(sprintf('criteriaType=%s is not supported', $criteriaType));
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-CRITERIA: criteriaType=%s,criteriaKey=%s - CALLED!', strtoupper($criteriaType), $criteriaType, $criteriaKey));
if (empty($criteriaType)) {
// Throw it again
- throw new InvalidArgumentException('Parameter "criteriaType" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaType" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif (!in_array($criteriaType, self::$CRITERIA_TYPES)) {
// Throw it again
throw new UnexpectedValueException(sprintf('criteriaType=%s is not supported', $criteriaType));
} elseif (empty($criteriaKey)) {
// Throw it again
- throw new InvalidArgumentException('Parameter "criteriaKey" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaKey" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif ((strpos($criteriaKey, 'my-') !== false) || (strpos($criteriaKey, 'my_') !== false)) {
// Throw it again
throw new InvalidArgumentException(sprintf('criteriaKey=%s has illegal prefix "my"', $criteriaKey));
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-CRITERIA: criteriaKey=%s - CALLED!', $criteriaKey));
if (empty($criteriaKey)) {
// Throw it again
- throw new InvalidArgumentException('Parameter "criteriaKey" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaKey" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
}
// Invoke inner method
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-CRITERIA: criteriaKey=%s - CALLED!', $criteriaKey));
if (empty($criteriaKey)) {
// Throw it again
- throw new InvalidArgumentException('Parameter "criteriaKey" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaKey" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
}
// Invoke inner method
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-CRITERIA: criteriaType=%s - CALLED!', strtoupper($criteriaType), $criteriaType));
if (empty($criteriaType)) {
// Throw it again
- throw new InvalidArgumentException('Parameter "criteriaType" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaType" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif (!in_array($criteriaType, self::$CRITERIA_TYPES)) {
// Throw it again
throw new UnexpectedValueException(sprintf('criteriaType=%s is not supported', $criteriaType));
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-CRITERIA: criteriaKey=%s - CALLED!', $criteriaKey));
if (empty($criteriaKey)) {
// Throw it again
- throw new InvalidArgumentException('Parameter "criteriaKey" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaKey" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif ((strpos($criteriaKey, 'my-') !== false) || (strpos($criteriaKey, 'my_') !== false)) {
// Throw it again
throw new InvalidArgumentException(sprintf('criteriaKey=%s has illegal prefix "my"', $criteriaKey));
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-CRITERIA: criteriaKey=%s,criteriaValue[]=%s,criteriaType=%s - CALLED!', strtoupper($criteriaType), $criteriaKey, gettype($criteriaValue), $criteriaType));
if (empty($criteriaKey)) {
// Throw IAE
- throw new InvalidArgumentException('Parameter "criteriaKey" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaKey" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif ((strpos($criteriaKey, 'my-') !== false) || (strpos($criteriaKey, 'my_') !== false)) {
// Throw it again
throw new InvalidArgumentException(sprintf('criteriaKey=%s has illegal prefix "my"', $criteriaKey));
throw new InvalidArgumentException(sprintf('value[]=%s is not supported', gettype($criteriaValue)));
} elseif (empty($criteriaType)) {
// Throw it again
- throw new InvalidArgumentException('Parameter "criteriaType" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaType" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif (!in_array($criteriaType, self::$CRITERIA_TYPES)) {
// Throw it again
throw new UnexpectedValueException(sprintf('criteriaType=%s is not supported', $criteriaType));
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-CRITERIA: criteriaKey=%s,criteriaValue[]=%s$criteriaValue,criteriaType=%s - CALLED!', strtoupper($criteriaType), $criteriaKey, gettype($criteriaValue), $criteriaType));
if (empty($criteriaKey)) {
// Throw IAE
- throw new InvalidArgumentException('Parameter "criteriaKey" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaKey" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif ((strpos($criteriaKey, 'my-') !== false) || (strpos($criteriaKey, 'my_') !== false)) {
// Throw it again
throw new InvalidArgumentException(sprintf('criteriaKey=%s has illegal prefix "my"', $criteriaKey));
throw new InvalidArgumentException(sprintf('value[]=%s is not supported', gettype($criteriaValue)));
} elseif (empty($criteriaType)) {
// Throw it again
- throw new InvalidArgumentException('Parameter "criteriaType" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaType" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif (!in_array($criteriaType, self::$CRITERIA_TYPES)) {
// Throw it again
throw new UnexpectedValueException(sprintf('criteriaType=%s is not supported', $criteriaType));
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-CRITERIA: criteriaKey=%s,criteriaValue[]=%s - CALLED!', $criteriaKey, gettype($criteriaValue)));
if (empty($criteriaKey)) {
// Throw IAE
- throw new InvalidArgumentException('Parameter "criteriaKey" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaKey" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif ((strpos($criteriaKey, 'my-') !== false) || (strpos($criteriaKey, 'my_') !== false)) {
// Throw it again
throw new InvalidArgumentException(sprintf('criteriaKey=%s has illegal prefix "my"', $criteriaKey));
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-CRITERIA: criteriaKey=%s,criteriaValue[%s]=%s - CALLED!', $criteriaKey, gettype($criteriaValue), $criteriaValue));
if (empty($criteriaKey)) {
// Throw IAE
- throw new InvalidArgumentException('Parameter "criteriaKey" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaKey" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif ((strpos($criteriaKey, 'my-') !== false) || (strpos($criteriaKey, 'my_') !== false)) {
// Throw it again
throw new InvalidArgumentException(sprintf('criteriaKey=%s has illegal prefix "my"', $criteriaKey));
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-CRITERIA: criteriaKey=%s,configEntry=%s,criteriaType=%s - CALLED!', strtoupper($criteriaType), $criteriaKey, $configEntry, $criteriaType));
if (empty($criteriaKey)) {
// Throw IAE
- throw new InvalidArgumentException('Parameter "criteriaKey" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaKey" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif ((strpos($criteriaKey, 'my-') !== false) || (strpos($criteriaKey, 'my_') !== false)) {
// Throw it again
throw new InvalidArgumentException(sprintf('criteriaKey=%s has illegal prefix "my"', $criteriaKey));
} elseif (empty($configEntry)) {
// Throw it again
- throw new InvalidArgumentException('Parameter "configEntry" is empty');
+ throw new InvalidArgumentException('Parameter "configEntry" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif (empty($criteriaType)) {
// Throw it again
- throw new InvalidArgumentException('Parameter "criteriaType" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaType" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif (!in_array($criteriaType, self::$CRITERIA_TYPES)) {
// Throw it again
throw new UnexpectedValueException(sprintf('criteriaType=%s is not supported', $criteriaType));
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-CRITERIA: criteriaKey=%s,criteriaType=%s - CALLED!', strtoupper($criteriaType), $criteriaKey, $criteriaType));
if (empty($criteriaKey)) {
// Throw IAE
- throw new InvalidArgumentException('Parameter "criteriaKey" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaKey" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif ((strpos($criteriaKey, 'my-') !== false) || (strpos($criteriaKey, 'my_') !== false)) {
// Throw it again
throw new InvalidArgumentException(sprintf('criteriaKey=%s has illegal prefix "my"', $criteriaKey));
} elseif (empty($criteriaType)) {
// Throw it again
- throw new InvalidArgumentException('Parameter "criteriaType" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaType" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif (!in_array($criteriaType, self::$CRITERIA_TYPES)) {
// Throw it again
throw new UnexpectedValueException(sprintf('criteriaType=%s is not supported', $criteriaType));
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-CRITERIA: criteriaKey=%s - CALLED!', $criteriaKey));
if (empty($criteriaKey)) {
// Throw IAE
- throw new InvalidArgumentException('Parameter "criteriaKey" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaKey" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif ((strpos($criteriaKey, 'my-') !== false) || (strpos($criteriaKey, 'my_') !== false)) {
// Throw it again
throw new InvalidArgumentException(sprintf('criteriaKey=%s has illegal prefix "my"', $criteriaKey));
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-CRITERIA: criteriaKey=%s - CALLED!', $criteriaKey));
if (empty($criteriaKey)) {
// Throw IAE
- throw new InvalidArgumentException('Parameter "criteriaKey" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaKey" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif ((strpos($criteriaKey, 'my-') !== false) || (strpos($criteriaKey, 'my_') !== false)) {
// Throw it again
throw new InvalidArgumentException(sprintf('criteriaKey=%s has illegal prefix "my"', $criteriaKey));
throw new InvalidArgumentException('entryArray cannot be an empty array');
} elseif (empty($criteriaType)) {
// Throw it again
- throw new InvalidArgumentException('Parameter "criteriaType" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaType" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif (!in_array($criteriaType, self::$CRITERIA_TYPES)) {
// Throw it again
throw new UnexpectedValueException(sprintf('criteriaType=%s is not supported', $criteriaType));
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-CRITERIA: onlyKeys()=%d,criteriaType=%s - CALLED!', strtoupper($criteriaType), count($onlyKeys), $criteriaType));
if (empty($criteriaType)) {
// Throw it again
- throw new InvalidArgumentException('Parameter "criteriaType" is empty');
+ throw new InvalidArgumentException('Parameter "criteriaType" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
} elseif (!in_array($criteriaType, self::$CRITERIA_TYPES)) {
// Throw it again
throw new UnexpectedValueException(sprintf('criteriaType=%s is not supported', $criteriaType));