MCPcopy Create free account
hub / github.com/apache/thrift / testException

Method testException

test/netstd/Server/TestServer.cs:477–494  ·  view source on GitHub ↗
(string? arg, CancellationToken cancellationToken)

Source from the content-addressed store, hash-verified

475 }
476
477 public Task testException(string? arg, CancellationToken cancellationToken)
478 {
479 logger.Invoke("testException({0})", arg ?? "<null>");
480 if (arg == "Xception")
481 {
482 var x = new Xception
483 {
484 ErrorCode = 1001,
485 Message = arg
486 };
487 throw x;
488 }
489 if (arg == "TException")
490 {
491 throw new TException();
492 }
493 return Task.CompletedTask;
494 }
495
496 public Task<Xtruct> testMultiException(string? arg0, string? arg1, CancellationToken cancellationToken)
497 {

Callers 1

ExecuteClientTestMethod · 0.45

Calls 1

InvokeMethod · 0.80

Tested by

no test coverage detected