Modify HttpException class to support log cause information.