in eventstream_rpc/source/EventStreamClient.cpp [280:314]
Crt::String RpcError::StatusToString()
{
switch (baseStatus)
{
case EVENT_STREAM_RPC_SUCCESS:
return "EVENT_STREAM_RPC_SUCCESS";
case EVENT_STREAM_RPC_NULL_PARAMETER:
return "EVENT_STREAM_RPC_NULL_PARAMETER";
case EVENT_STREAM_RPC_UNINITIALIZED:
return "EVENT_STREAM_RPC_UNINITIALIZED";
case EVENT_STREAM_RPC_ALLOCATION_ERROR:
return "EVENT_STREAM_RPC_ALLOCATION_ERROR";
case EVENT_STREAM_RPC_CONNECTION_SETUP_FAILED:
return "EVENT_STREAM_RPC_CONNECTION_SETUP_FAILED";
case EVENT_STREAM_RPC_CONNECTION_ACCESS_DENIED:
return "EVENT_STREAM_RPC_CONNECTION_ACCESS_DENIED";
case EVENT_STREAM_RPC_CONNECTION_ALREADY_ESTABLISHED:
return "EVENT_STREAM_RPC_CONNECTION_ALREADY_ESTABLISHED";
case EVENT_STREAM_RPC_CONNECTION_CLOSED:
return "EVENT_STREAM_RPC_CONNECTION_CLOSED";
case EVENT_STREAM_RPC_CONTINUATION_CLOSED:
return "EVENT_STREAM_RPC_CONTINUATION_CLOSED";
case EVENT_STREAM_RPC_UNKNOWN_PROTOCOL_MESSAGE:
return "EVENT_STREAM_RPC_UNKNOWN_PROTOCOL_MESSAGE";
case EVENT_STREAM_RPC_UNMAPPED_DATA:
return "EVENT_STREAM_RPC_UNMAPPED_DATA";
case EVENT_STREAM_RPC_UNSUPPORTED_CONTENT_TYPE:
return "EVENT_STREAM_RPC_UNSUPPORTED_CONTENT_TYPE";
case EVENT_STREAM_RPC_CRT_ERROR:
Crt::String ret = "Failed with EVENT_STREAM_RPC_CRT_ERROR, the CRT error was ";
ret += Crt::ErrorDebugString(crtError);
return ret;
}
return "Unknown status code";
}