/**
  * Wraps an Exception.
  *
  * @param Exception $e An Exception instance
  *
  * @return sfException An sfException instance that wraps the given Exception object
  */
 public static function createFromException(Exception $e)
 {
     $exception = new sfException(sprintf('Wrapped %s: %s', get_class($e), $e->getMessage()));
     $exception->setWrappedException($e);
     self::$lastException = $e;
     return $exception;
 }