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)
| 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. |
no test coverage detected