Is it able to pass the exception object instead of just string?