Copied!

Thrown when a type of given value does not match an expected type.

Instantiable
Properties
public readonly string $actualType
public readonly string $expectedType
public readonly string $propertyPath
Methods
public __construct(string $expectedType, string $actualType, string $propertyPath, ?Throwable $previous = NULL)
public Exception::__toString() : string
public Exception::__wakeup()
public final Exception::getCode()
public final Exception::getFile() : string
public final Exception::getLine() : int
public final Exception::getMessage() : string
public final Exception::getPrevious() : ?Throwable
public final Exception::getTrace() : array
public final Exception::getTraceAsString() : string
Properties
protected Exception::$code = 0
protected string Exception::$file = ''
protected int Exception::$line = 0
protected Exception::$message = ''
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration