t() :: %PTAX.Error{ __exception__: term(), code: atom(), extra: map() | nil, message: binary() }
new(Enum.t()) :: t()