keep reference of the exception in Restler class