aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/impl/codegen/status_code_enum.h
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2016-08-29 16:42:04 -0700
committerGravatar Vijay Pai <vpai@google.com>2016-08-29 16:42:04 -0700
commita9c0d7f88b213d9a5e41808fd5d1eceaff1a034f (patch)
treec98aa839fbdac5d0cee7358660e376143c9d0bcd /include/grpc++/impl/codegen/status_code_enum.h
parent266494cadb6b6d213d8f01da0630d80d2b9f6c1f (diff)
Change names to StreamedUnary, ServerUnaryStreamer, etc. Use a templated method handler since most code shared between the new StreamedUnary and the existing BidiStreaming. Eliminate the separate enum case for streamed unary. Return a status failure if a StreamedUnary method handler doesn't actually do a write (since that is
violating the appearance of unary-ness)
Diffstat (limited to 'include/grpc++/impl/codegen/status_code_enum.h')
-rw-r--r--include/grpc++/impl/codegen/status_code_enum.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/grpc++/impl/codegen/status_code_enum.h b/include/grpc++/impl/codegen/status_code_enum.h
index 9a90a18e2a..0f18a22c36 100644
--- a/include/grpc++/impl/codegen/status_code_enum.h
+++ b/include/grpc++/impl/codegen/status_code_enum.h
@@ -143,6 +143,11 @@ enum StatusCode {
/// Unrecoverable data loss or corruption.
DATA_LOSS = 15,
+ // Service was improperly implemented, violated a gRPC API requirement
+ // Not quite the same as unimplemented since it could just be that the API
+ // requirement was violated in this particular circumstance
+ IMPROPER_IMPLEMENTATION = 16,
+
/// Force users to include a default branch:
DO_NOT_USE = -1
};