public static function createFromException(Exception $e, $token = null) { $exception = new limeException($token, sprintf('Wrapped %s: %s', get_class($e), $e->getMessage())); $exception->setWrappedException($e); return $exception; }