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 gRPC (Remote Procedure Call), consisting of a \u003ccode\u003eStatusCode\u003c/code\u003e and an optional detail string that provides more context.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for \u003ccode\u003eStatus\u003c/code\u003e, one that takes a \u003ccode\u003eStatusCode\u003c/code\u003e and a detail string, and another intended for internal testing that also takes an optional debug \u003ccode\u003eException\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eStatus\u003c/code\u003e includes static fields for \u003ccode\u003eDefaultCancelled\u003c/code\u003e and \u003ccode\u003eDefaultSuccess\u003c/code\u003e, representing a cancelled RPC and a successful RPC, respectively, with appropriate status codes and empty detail messages.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStatus\u003c/code\u003e struct has properties to access the \u003ccode\u003eStatusCode\u003c/code\u003e, the \u003ccode\u003eDetail\u003c/code\u003e message, and an optional \u003ccode\u003eDebugException\u003c/code\u003e that offers additional debugging information in case of an error.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eToString()\u003c/code\u003e method provides a string representation of the current \u003ccode\u003eStatus\u003c/code\u003e, overriding the base \u003ccode\u003eValueType.ToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]