/**
  * Clears the $lastException property (added for #6342)
  */
 public static function clearLastException()
 {
     self::$lastException = null;
 }
 /**
  * Sets the wrapped exception.
  *
  * @param Exception $e An Exception instance
  */
 public function setWrappedException(Exception $e)
 {
     $this->wrappedException = $e;
     self::$lastException = $e;
 }