Dagger.Error (dagger v0.18.3)

View Source

Dagger.Error

Summary

Functions

A unique identifier for this Error.

A description of the error.

The extensions of the error.

Add a value to the error.

Types

t()

@type t() :: %Dagger.Error{client: term(), query_builder: term()}

Functions

id(error)

@spec id(t()) :: {:ok, Dagger.ErrorID.t()} | {:error, term()}

A unique identifier for this Error.

message(error)

@spec message(t()) :: {:ok, String.t()} | {:error, term()}

A description of the error.

values(error)

@spec values(t()) :: {:ok, [Dagger.ErrorValue.t()]} | {:error, term()}

The extensions of the error.

with_value(error, name, value)

@spec with_value(t(), String.t(), Dagger.JSON.t()) :: t()

Add a value to the error.