Class TxException
The most generic exception thrown by the SDK as a result of an error response from the API
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Textkernel.Tx
Assembly: Textkernel.Tx.SDK.dll
Syntax
public class TxException : Exception, ISerializable
Properties
| Improve this Doc View SourceHttpStatusCode
The HTTP Status Code of the response. See https://developer.textkernel.com/tx-platform/v10/overview/#http-status-codes
Declaration
public HttpStatusCode HttpStatusCode { get; protected set; }
Property Value
Type | Description |
---|---|
System.Net.HttpStatusCode |
RequestBody
The JSON request body, will only have a value if ShowFullRequestBodyInExceptions is true
Declaration
public string RequestBody { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
ResponseMessage
The raw response from the API
Declaration
public HttpResponseMessage ResponseMessage { get; protected set; }
Property Value
Type | Description |
---|---|
System.Net.Http.HttpResponseMessage |
TransactionId
The Id of the transaction, use this when reporting errors to Support
Declaration
public string TransactionId { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
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
Declaration
public string TxErrorCode { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Implements
System.Runtime.Serialization.ISerializable