Tm1ProtocolException
using Skipcheck.Tm1.Client.Errors;TM1's response couldn't be read: malformed or truncated JSON, an unexpected shape, or an error reported in the middle of a response that started as a success. OData says a client must treat such a response as failed as a whole (Part 1 §9.5), so any items already delivered from it should be treated as incomplete.
Members
Tm1ProtocolException constructor | An exception for a response that couldn't be read. |
Tm1ProtocolException constructor | A protocol failure that isn't a request's. |
Error property | The error TM1 reported in the response, or null if it reported none. |
IsRetryable | The same response would come back. |
MayHaveApplied | TM1 had started to answer, so the request may have taken effect. |
Method property | The request's HTTP method, when the failure is a request's. |
Url property | The request's URL, when the failure is a request's. |
Tm1ProtocolException
constructorTm1ProtocolException(string message, ODataError? error, string? method, string? url, Exception? cause)An exception for a response that couldn't be read.
Parameters
message- What was wrong with the response; the method and URL are appended.
error- The error TM1 reported in the response, or null.
method- The request's HTTP method, or null if not known.
url- The request's URL, without credentials, or null if not known.
cause- The underlying failure, such as a parse error, or null.
Tm1ProtocolException
constructorTm1ProtocolException(string message, Exception? cause = null)A protocol failure that isn't a request's.
Error
propertyODataError? ErrorThe error TM1 reported in the response, or null if it reported none.
IsRetryable
bool IsRetryable()Never: the same response would come back.
MayHaveApplied
bool MayHaveApplied()Always: TM1 had started to answer, so the request may have taken effect.
Method
propertystring? MethodThe request's HTTP method, when the failure is a request's.
Url
propertystring? UrlThe request's URL, when the failure is a request's.