   This exception occurs when a Union is serialized and more than one
   field is set.
   """
+  @enforce_keys [:message, :set_fields]
   defexception message: nil, set_fields: nil
 end
 

  This exception occurs when a thrift file fails to parse
  """

  defexception message: nil

  @doc false  # Exception callback, should not be called by end user

end

defmodule Thrift.InvalidValueException do
  @enforce_keys [:message]
  defexception message: nil
end
