(self, context, descriptor, reader, writer)
| 441 | raise flight.FlightInternalError("foo") |
| 442 | |
| 443 | def do_put(self, context, descriptor, reader, writer): |
| 444 | if descriptor.command == b"internal": |
| 445 | raise flight.FlightInternalError("foo") |
| 446 | elif descriptor.command == b"timedout": |
| 447 | raise flight.FlightTimedOutError("foo") |
| 448 | elif descriptor.command == b"cancel": |
| 449 | raise flight.FlightCancelledError("foo") |
| 450 | elif descriptor.command == b"unauthenticated": |
| 451 | raise flight.FlightUnauthenticatedError("foo") |
| 452 | elif descriptor.command == b"unauthorized": |
| 453 | raise flight.FlightUnauthorizedError("foo") |
| 454 | elif descriptor.command == b"protobuf": |
| 455 | err_msg = b'this is an error message' |
| 456 | raise flight.FlightUnauthorizedError("foo", err_msg) |
| 457 | |
| 458 | |
| 459 | class ExchangeFlightServer(FlightServerBase): |
nothing calls this directly
no outgoing calls
no test coverage detected