ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
CAS_TypeMismatchException Class Reference
+ Inheritance diagram for CAS_TypeMismatchException:
+ Collaboration diagram for CAS_TypeMismatchException:

Public Member Functions

 __construct ( $argument, $argumentName, $type, $message='', $code=0)
 Constructor, provides a nice message. More...
 

Detailed Description

Definition at line 40 of file TypeMismatchException.php.

Constructor & Destructor Documentation

◆ __construct()

CAS_TypeMismatchException::__construct (   $argument,
  $argumentName,
  $type,
  $message = '',
  $code = 0 
)

Constructor, provides a nice message.

Parameters
mixed$argumentArgument
string$argumentNameArgument Name
string$typeType
string$messageError Message
integer$codeCode
Returns
void

Definition at line 53 of file TypeMismatchException.php.

References $message, $type, and ILIAS\GlobalScreen\Provider\__construct().

59  {
60  if (is_object($argument)) {
61  $foundType = get_class($argument) . ' object';
62  } else {
63  $foundType = gettype($argument);
64  }
65 
67  'type mismatched for parameter '
68  . $argumentName . ' (should be \'' . $type . ' \'), '
69  . $foundType . ' given. ' . $message,
70  $code
71  );
72  }
$type
__construct(Container $dic, ilPlugin $plugin)
$message
Definition: xapiexit.php:14
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: