Back to ErrorEvent class

Method setError

public void
setError
(\Throwable $error)
Set the event's error object
Parameters
  • \Throwable $error The new error to process
Returns
  • void
Since
  • 4.0.0
Class: ErrorEvent
Project: Joomla

Method setError - Source code

/**
 * Set the event's error object
 *
 * @param   \Throwable  $error  The new error to process
 *
 * @return  void
 *
 * @since   4.0.0
 */
public function setError(\Throwable $error)
{
    $this->setArgument('subject', $error);
}