public static function isCalledByWhoops() : bool
  {
    /**
     * Get trace
     */
    $trace = debug_backtrace();

    $trace = end($trace);

    return isset($trace['class']) && $trace['class'] == 'Whoops\Run';
  }
public static function isCalledByWhoops() : bool
  {
    /**
     * Get trace
     */
    $trace = debug_backtrace();

    $trace = end($trace);

    return isset($trace['class']) && $trace['class'] == 'Whoops\Run';
  }
public static function isCalledByWhoops ( ) : bool { /**
     * Get trace
     */ $ trace = debug_backtrace ( ) ; $ trace = end ( $ trace ) ; return isset ( $ trace [ 'class' ] ) && $ trace [ 'class' ] == 'Whoops\Run' ; }
Check if this is an exception

@return bool
Check if this is an exception