'Notice', E_WARNING => 'Warning', E_ERROR => 'Error', E_PARSE => 'Fatal error', ); /** * Error string * * String describing the general type of this error * * @var string */ protected $errorString = 'Conversion error'; /** * Construct exception from errnous string and current position * * @param int $level * @param string $message * @param string $file * @param int $line * @param int $position * @return void */ public function __construct( $level, $message, $file, $line, $position ) { parent::__construct( sprintf( "%s: %s: '%s' in line %d at position %d.", $this->errorString, $this->levelMapping[$level], $message, $line, $position ) ); } } ?>