6 * exception if the given parameter
7 * has an unexpected data-type
10 class UnexpectedParameterTypeException extends \Exception {
13 * @param $strExpected - the expected datatype
14 * @param $mixedValue - the given parameter
16 * determines the datatype of the given parameter and
17 * creates and stores the exception message
20 public function __construct($strExpected, $mixedValue) {
22 parent::__construct("value of type $strExpected expected, but got: " . gettype($mixedValue));