Scrip v1.0.0 Scrip.Response.Error View Source

Module dealing with error responses from the App Store

Link to this section Summary

Link to this section Types

Specs

t() :: %Scrip.Response.Error{
  environment: :sandbox | :production | nil,
  message: String.t(),
  status: integer()
}

Link to this section Functions

Link to this function

%Scrip.Response.Error{}

View Source (struct)

The Elixir.Scrip.Response.Error struct

Contains

  • :status - status code returned by the App Store
  • :message - message explaining the status code
  • :environment - which environment the error was generated (sometimes nil)
Link to this function

new(status, message, environment)

View Source

Specs

new(integer(), String.t(), String.t()) :: t()