/**
  * Adds error notice and throws exception
  *
  * @param     string $message The message to display
  * @param     AbstractWidget $widget The widget object
  *
  * @throws    InvalidArgumentException
  */
 public static function terminate($message, AbstractWidget $widget)
 {
     $notice = '<b>' . $widget->getTitle() . ':</b>' . $message;
     throw new InvalidArgumentException($notice);
 }