MCPcopy Create free account
hub / github.com/dagger/dagger / with_value

Method with_value

sdk/python/src/dagger/client/gen.py:7818–7833  ·  view source on GitHub ↗

Add a value to the error. Parameters ---------- name: The name of the value. value: The value to store on the error.

(self, name: str, value: JSON)

Source from the content-addressed store, hash-verified

7816 return await _ctx.execute_object_list(ErrorValue)
7817
7818 def with_value(self, name: str, value: JSON) -> Self:
7819 """Add a value to the error.
7820
7821 Parameters
7822 ----------
7823 name:
7824 The name of the value.
7825 value:
7826 The value to store on the error.
7827 """
7828 _args = [
7829 Arg("name", name),
7830 Arg("value", value),
7831 ]
7832 _ctx = self._select("withValue", _args)
7833 return Error(_ctx)
7834
7835 def with_(self, cb: Callable[["Error"], "Error"]) -> "Error":
7836 """Call the provided callable with current Error.

Callers 1

record_exceptionFunction · 0.80

Calls 3

ArgClass · 0.90
_selectMethod · 0.80
ErrorClass · 0.70

Tested by

no test coverage detected