Victoria.Spec.Error exception (Victoria v0.1.0)

Copy Markdown View Source

Describes a filesystem validation failure for a Victoria specification.

Errors are returned by Victoria.Spec.new/1 and should be treated as read-only.

Summary

Types

The specification path that failed validation.

The filesystem or extension validation failure.

t()

A structured specification-path failure.

Types

field()

@type field() :: :source | :config

The specification path that failed validation.

reason()

@type reason() ::
  :not_found
  | :not_a_regular_file
  | {:invalid_extension, String.t()}
  | {:filesystem, term()}

The filesystem or extension validation failure.

t()

@type t() :: %Victoria.Spec.Error{
  __exception__: term(),
  field: field(),
  path: Path.t(),
  reason: reason()
}

A structured specification-path failure.