Class TxException
- Namespace
- Textkernel.Tx
- Assembly
- Textkernel.Tx.SDK.dll
The most generic exception thrown by the SDK as a result of an error response from the API
public class TxException : Exception, ISerializable
- Inheritance
-
TxException
- Implements
- Derived
- Inherited Members
Properties
HttpStatusCode
The HTTP Status Code of the response. See https://developer.textkernel.com/tx-platform/v10/overview/#http-status-codes
public HttpStatusCode HttpStatusCode { get; protected set; }
Property Value
RequestBody
The JSON request body, will only have a value if ShowFullRequestBodyInExceptions is true
public string RequestBody { get; protected set; }
Property Value
ResponseMessage
The raw response from the API
public HttpResponseMessage ResponseMessage { get; protected set; }
Property Value
TransactionId
The Id of the transaction, use this when reporting errors to Support
public string TransactionId { get; protected set; }
Property Value
TxErrorCode
The Info.Code of the response. This will indicate what type of error occurred. See https://developer.textkernel.com/tx-platform/v10/overview/#http-status-codes
public string TxErrorCode { get; protected set; }