function __autoload($class) { try { Library::load($class); } catch (Exception $exception) { Diagnostics::handleException($exception); die('Could not autoload ' . $class); } }