Predefined Exceptions
PHP Manual

TypeError

(PHP 7)

Introduction

TypeError is thrown when strict typing is enabled and an invalid argument is given to a function.

Class synopsis

TypeError extends Error {
/* Inherited methods */
abstract public string Throwable::getMessage ( void )
abstract public int Throwable::getCode ( void )
abstract public string Throwable::getFile ( void )
abstract public int Throwable::getLine ( void )
abstract public array Throwable::getTrace ( void )
abstract public string Throwable::getTraceAsString ( void )
abstract public Throwable Throwable::getPrevious ( void )
abstract public string Throwable::__toString ( void )
}

Predefined Exceptions
PHP Manual