public Status(StatusCode statusCode, string detail, Exception? debugException)
Creates a new instance ofStatus.
Users should not use this constructor, except for creating instances for testing.
The debug error string should only be populated by gRPC internals.
Note: experimental API that can change or be removed without any prior notice.
public readonly Exception? DebugException { get; }
In case of an error, this field may contain additional error details to help with debugging.
This field will be only populated on a client and its value is generated locally,
based on the internal state of the gRPC client stack (i.e. the value is never sent over the wire).
Note that this field is available only for debugging purposes, the application logic should
never rely on values of this field (it should useStatusCodeandDetailinstead).
Example: when a client fails to connect to a server, this field may provide additional details
why the connection to the server has failed.
Note: experimental API that can change or be removed without any prior notice.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eStatus\u003c/code\u003e struct represents the result of a Remote Procedure Call (RPC), containing a \u003ccode\u003eStatusCode\u003c/code\u003e to indicate success or failure and an optional detail string.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for the \u003ccode\u003eStatus\u003c/code\u003e struct: one for general use, taking a \u003ccode\u003eStatusCode\u003c/code\u003e and detail string, and another for internal testing purposes that also accepts an optional \u003ccode\u003edebugException\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStatus\u003c/code\u003e struct has two default fields, \u003ccode\u003eDefaultCancelled\u003c/code\u003e representing a cancelled RPC, and \u003ccode\u003eDefaultSuccess\u003c/code\u003e representing a successful RPC.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDebugException\u003c/code\u003e property provides additional debugging information in case of an error, but it's intended for debugging use only and should not be used in application logic.\u003c/p\u003e\n"],["\u003cp\u003eThe properties \u003ccode\u003eDetail\u003c/code\u003e and \u003ccode\u003eStatusCode\u003c/code\u003e contain the detailed string and the code respectively for the status, and the \u003ccode\u003eToString()\u003c/code\u003e method returns a string that represents the current status.\u003c/p\u003e\n"]]],[],null,[]]