(route)
| 1960 | |
| 1961 | @staticmethod |
| 1962 | def has_error(route): |
| 1963 | assert isinstance(route, ApiRoute), repr(route) |
| 1964 | if is_void_type(route.error_data_type): |
| 1965 | return False |
| 1966 | else: |
| 1967 | # we only support user-defined error types |
| 1968 | assert is_user_defined_type(route.error_data_type), repr(route) |
| 1969 | return True |
| 1970 | |
| 1971 | @staticmethod |
| 1972 | def request_style(route): |
no outgoing calls
no test coverage detected