ODataError
using Skipcheck.Tm1.Client.Errors; An OData error response body: {"error":{"code":"278","message":"..."}}.
TM1 uses code 278 for most errors (not found, bad request, precondition failed
and not implemented alike), so the code alone rarely identifies an error. See
Tm1ErrorClassifier.
Members
ODataError constructor | An error body. |
Code property | TM1's error code, or empty. |
Message property | TM1's message, or empty. |
Target property | What the error applies to, or null. |
Details property | Further errors; empty if there are none. |
InnerError property | The server's own extra information (innererror), or null. |
From static | The error in a JSON body, wrapped in error or not; null if it isn't one. |
FromText static | The error in a plain-text body, as TM1 sends some (its Error. |
Parse static | The error in a response body, whatever its form. |
Equals | |
GetHashCode |
ODataError
constructorODataError(string? code, string? message, string? target = null, IReadOnlyList<ODataError>? details = null, JsonElement? innerError = null)An error body. A null code or message reads as an empty string.
Parameters
code- The error code, as text.
message- The message.
Code
propertystring CodeTM1's error code, or empty.
Message
propertystring MessageTM1's message, or empty.
Target
propertystring? TargetWhat the error applies to, or null.
Details
propertyIReadOnlyList<ODataError> DetailsFurther errors; empty if there are none.
InnerError
propertyJsonElement? InnerErrorThe server's own extra information (innererror), or null.
From
staticODataError? From(JsonElement? body)The error in a JSON body, wrapped in error or not; null if it isn't one.
FromText
staticODataError? FromText(string body)The error in a plain-text body, as TM1 sends some (its Error: lines dropped,
the rest joined on one line and cut at 1000 characters); null if there's no text.
Parse
staticODataError? Parse(byte[]? body)The error in a response body, whatever its form: JSON, then plain text; null if empty.
Equals
bool Equals(ODataError? other)GetHashCode
int GetHashCode()