Commits


David Li authored and Antoine Pitrou committed a8abbe3214b
ARROW-5681: [FlightRPC] Add Flight-specific error APIs This adds a set of exceptions (in Java/Python) and status codes (in C++) for Flight, to convey Flight-specific issues and to let server implementations provide more semantic error messages to clients. The error codes defined are a subset of the gRPC ones. In Flight/Java, you could always raise `io.grpc.StatusRuntimeException` yourself, but we want to abstract away from the gRPC APIs. There are not tests for conveying these statuses cross-language. That should be done as part of ARROW-5875. Travis: https://travis-ci.com/lihalite/arrow/builds/118452703 AppVeyor: https://ci.appveyor.com/project/lihalite/arrow/builds/25849820 Closes #4840 from lihalite/flight-status and squashes the following commits: 40bc687ac <David Li> Implement Flight-specific status codes in Python fb51b45d0 <David Li> Add Flight-specific status codes in C++ 9af9606e3 <David Li> Add statuses to Flight in Java Authored-by: David Li <li.davidm96@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>