public function fromArray(array $error)
{
// initialize the variables
$type = 0;
$message = '';
$file = '';
$line = 0;
// extract the array with the error information
extract($error);
// initialize and return the error instance
return new Error($type, $message, $file, $line);
}