Allow $exception parameter to be Exception instance