Return an error from the function. Parameters ---------- error: The error to return. Returns ------- Void | None The absence of a value. A Null Void is used as a placeholder for resolvers that do not return anythi
(self, error: Error)
| 8983 | return await _ctx.execute(str) |
| 8984 | |
| 8985 | async def return_error(self, error: Error) -> Void | None: |
| 8986 | """Return an error from the function. |
| 8987 | |
| 8988 | Parameters |
| 8989 | ---------- |
| 8990 | error: |
| 8991 | The error to return. |
| 8992 | |
| 8993 | Returns |
| 8994 | ------- |
| 8995 | Void | None |
| 8996 | The absence of a value. A Null Void is used as a placeholder for |
| 8997 | resolvers that do not return anything. |
| 8998 | |
| 8999 | Raises |
| 9000 | ------ |
| 9001 | ExecuteTimeoutError |
| 9002 | If the time to execute the query exceeds the configured timeout. |
| 9003 | QueryError |
| 9004 | If the API returns an error. |
| 9005 | """ |
| 9006 | _args = [ |
| 9007 | Arg("error", error), |
| 9008 | ] |
| 9009 | _ctx = self._select("returnError", _args) |
| 9010 | await _ctx.execute() |
| 9011 | |
| 9012 | async def return_value(self, value: JSON) -> Void | None: |
| 9013 | """Set the return value of the function call to the provided value. |
no test coverage detected