TypeErrorException
extends Exception
in package
implements
Exception
A "type error" Exception for Psy.
Interfaces, Classes and Traits
- Exception
- An interface for Psy Exceptions.
Table of Contents
- $rawMessage : mixed
- __construct() : mixed
- Constructor!
- fromTypeError() : TypeErrorException
- Create a TypeErrorException from a TypeError.
- getRawMessage() : string
- Get the raw (unformatted) message for this error.
Properties
$rawMessage
private
mixed
$rawMessage
Methods
__construct()
Constructor!
public
__construct([string $message = '' ], int $code) : mixed
Parameters
- $message : string = ''
-
(default: "")
- $code : int
-
(default: 0)
Return values
mixed —fromTypeError()
Create a TypeErrorException from a TypeError.
public
static fromTypeError(TypeError $e) : TypeErrorException
Parameters
- $e : TypeError
Return values
TypeErrorException —getRawMessage()
Get the raw (unformatted) message for this error.
public
getRawMessage() : string