The Yaf_Exception class

Introduction

Yaf_Exception is the base class of all exceptions thrown by Yaf. Every other Yaf exception class extends it.

It extends RuntimeException when the SPL extension is loaded, and the built-in Exception otherwise. Exceptions raised by Yaf carry an error code that identifies the type of failure.

Class synopsis

Yaf_Exception
class Yaf_Exception extends RuntimeException {
/* Inherited properties */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private Throwablenull $previous = null;
/* Methods */
public __construct(string $message = "", int $code = 0)
public Throwable getPrevious()
/* Inherited methods */
final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}
Table of Contents