Skip to content
Snippets Groups Projects
Commit 9dc18216 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

better name for StatusFromException

parent 40ea2d3a
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,7 @@ namespace Grpc.Core.Internal ...@@ -76,7 +76,7 @@ namespace Grpc.Core.Internal
{ {
Logger.Warning(e, "Exception occured in handler."); Logger.Warning(e, "Exception occured in handler.");
} }
status = HandlerUtils.StatusFromException(e, context.ResponseTrailers); status = HandlerUtils.GetStatusFromExceptionAndMergeTrailers(e, context.ResponseTrailers);
} }
try try
{ {
...@@ -133,7 +133,7 @@ namespace Grpc.Core.Internal ...@@ -133,7 +133,7 @@ namespace Grpc.Core.Internal
{ {
Logger.Warning(e, "Exception occured in handler."); Logger.Warning(e, "Exception occured in handler.");
} }
status = HandlerUtils.StatusFromException(e, context.ResponseTrailers); status = HandlerUtils.GetStatusFromExceptionAndMergeTrailers(e, context.ResponseTrailers);
} }
try try
...@@ -191,7 +191,7 @@ namespace Grpc.Core.Internal ...@@ -191,7 +191,7 @@ namespace Grpc.Core.Internal
{ {
Logger.Warning(e, "Exception occured in handler."); Logger.Warning(e, "Exception occured in handler.");
} }
status = HandlerUtils.StatusFromException(e, context.ResponseTrailers); status = HandlerUtils.GetStatusFromExceptionAndMergeTrailers(e, context.ResponseTrailers);
} }
try try
...@@ -247,7 +247,7 @@ namespace Grpc.Core.Internal ...@@ -247,7 +247,7 @@ namespace Grpc.Core.Internal
{ {
Logger.Warning(e, "Exception occured in handler."); Logger.Warning(e, "Exception occured in handler.");
} }
status = HandlerUtils.StatusFromException(e, context.ResponseTrailers); status = HandlerUtils.GetStatusFromExceptionAndMergeTrailers(e, context.ResponseTrailers);
} }
try try
{ {
...@@ -292,7 +292,7 @@ namespace Grpc.Core.Internal ...@@ -292,7 +292,7 @@ namespace Grpc.Core.Internal
internal static class HandlerUtils internal static class HandlerUtils
{ {
public static Status StatusFromException(Exception e, Metadata callContextResponseTrailers) public static Status GetStatusFromExceptionAndMergeTrailers(Exception e, Metadata callContextResponseTrailers)
{ {
var rpcException = e as RpcException; var rpcException = e as RpcException;
if (rpcException != null) if (rpcException != null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment