| 7760 | |
| 7761 | @typecheck |
| 7762 | class Error(Type): |
| 7763 | async def id(self) -> str: |
| 7764 | """A unique identifier for this Error. |
| 7765 | |
| 7766 | Note |
| 7767 | ---- |
| 7768 | This is lazily evaluated, no operation is actually run. |
| 7769 | |
| 7770 | Returns |
| 7771 | ------- |
| 7772 | str |
| 7773 | The `ID` scalar type represents a unique identifier, often used to |
| 7774 | refetch an object or as key for a cache. The ID type appears in a |
| 7775 | JSON response as a String; however, it is not intended to be |
| 7776 | human-readable. When expected as an input type, any string (such |
| 7777 | as `"4"`) or integer (such as `4`) input value will be accepted as |
| 7778 | an ID. |
| 7779 | |
| 7780 | Raises |
| 7781 | ------ |
| 7782 | ExecuteTimeoutError |
| 7783 | If the time to execute the query exceeds the configured timeout. |
| 7784 | QueryError |
| 7785 | If the API returns an error. |
| 7786 | """ |
| 7787 | _args: list[Arg] = [] |
| 7788 | _ctx = self._select("id", _args) |
| 7789 | return await _ctx.execute(str) |
| 7790 | |
| 7791 | async def message(self) -> str: |
| 7792 | """A description of the error. |
| 7793 | |
| 7794 | Returns |
| 7795 | ------- |
| 7796 | str |
| 7797 | The `String` scalar type represents textual data, represented as |
| 7798 | UTF-8 character sequences. The String type is most often used by |
| 7799 | GraphQL to represent free-form human-readable text. |
| 7800 | |
| 7801 | Raises |
| 7802 | ------ |
| 7803 | ExecuteTimeoutError |
| 7804 | If the time to execute the query exceeds the configured timeout. |
| 7805 | QueryError |
| 7806 | If the API returns an error. |
| 7807 | """ |
| 7808 | _args: list[Arg] = [] |
| 7809 | _ctx = self._select("message", _args) |
| 7810 | return await _ctx.execute(str) |
| 7811 | |
| 7812 | async def values(self) -> list["ErrorValue"]: |
| 7813 | """The extensions of the error.""" |
| 7814 | _args: list[Arg] = [] |
| 7815 | _ctx = self._select("values", _args) |
| 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. |
no outgoing calls
no test coverage detected