Fil.AccessDeniedError exception (Fil v0.5.1)

Copy Markdown View Source

The storage or a plugin refused access. Fix the permissions or the credentials, or use a disk that allows the operation.

Adapters return it for missing file permissions, a read-only filesystem, and credentials or a bucket policy that don't allow the operation. Fil.Plugin.ReadOnly returns it with reason: :read_only for every call that would change its disk.

Summary

Types

t()

@type t() :: %Fil.AccessDeniedError{
  __exception__: term(),
  disk: Fil.Disk.t() | nil,
  op: Fil.Op.name() | nil,
  path: String.t() | nil,
  reason: term()
}