class ActionDispatch::ExceptionWrapper

def unwrapped_exception

def unwrapped_exception
  if wrapper_exceptions.include?(@exception_class_name)
    @exception.cause
  else
    @exception
  end
end