HumHub Documentation (unofficial)

InvalidArgumentClassException extends InvalidArgumentTypeException
in package

InvalidArgumentException represents an exception caused by invalid arguments passed to a method.

Tags
since
1.15

Table of Contents

Properties

$given  : mixed
$isInstantiating  : bool
$methodName  : string
$parameter  : string|null
$suffix  : string
$valid  : array<string|int, mixed>

Methods

__construct()  : mixed
formatMessage()  : string
getGiven()  : mixed
getMethodName()  : string
getName()  : string
getParameter()  : string|null
getSuffix()  : string
getValid()  : array<string|int, mixed>
newInstance()  : self
setMethodName()  : self
setParameter()  : InvalidArgumentExceptionTrait
setSuffix()  : self
setValid()  : self
formatGiven()  : string
formatPrologue()  : string
formatValid()  : string
updateMessage()  : self

Properties

Methods

__construct()

public __construct(string $parameterOrMessage[, string|array<string|int, string> $valid = null ][, mixed $given = null ][, int $code = null ][, Throwable|null $previous = null ]) : mixed
Parameters
$parameterOrMessage : string

Name of parameter in question, or alternatively the full message string containing at least one space character (ASCII 32). In this case, $valid and $given are considered to be $code and $previous respectively

$valid : string|array<string|int, string> = null

(List of) valid parameter(s)

$given : mixed = null

Parameter received

$code : int = null

Optional exception code

$previous : Throwable|null = null

Optional previous exception

Tags
noinspection

PhpDocMissingThrowsInspection

noinspection

PhpMissingParamTypeInspection

newInstance()

public static newInstance(mixed $parameterOrMessage[, mixed $valid = null ][, mixed $given = null ][, mixed $code = null ][, mixed $previous = null ]) : self
Parameters
$parameterOrMessage : mixed
$valid : mixed = null
$given : mixed = null
$code : mixed = null
$previous : mixed = null
Tags
see
static::__construct()
noinspection

PhpUnhandledExceptionInspection

noinspection

PhpDocMissingThrowsInspection

Return values
self

        
On this page

Search results