Search documentation of Localize

# Localize.LocaleDownloadError exception (Localize v0.39.0)

Copy Markdown View Source

Exception raised when a locale file cannot be downloaded from its remote URL.

## Summary

### Types

reason()
t()

## Types

# reason()

    @type reason() ::
      :not_modified
      | :http_error
      | :connection_timeout
      | :request_timeout
      | :nxdomain
      | :network_error
      | :safe_decode_failed
      | :stale_version

# t()

    @type t() :: %Localize.LocaleDownloadError{
      __exception__: term(),
      cause: term() | nil,
      http_status: 100..599 | nil,
      locale_id: atom(),
      reason: reason() | nil,
      url: String.t() | nil
    }