Pain001NoDocumentException¶
Namespace Pain001.Sdk.
A generate call answered with a 2xx status but no XML document: success is not true, or xml is missing or empty.
Remarks¶
pain001 0.0.87 and later answer a refusal with HTTP 422, which Pain001Client.GenerateAsync raises as Pain001GenerationRefusedException, so a server that sends this is older or broken. It is raised instead of returning a result without a document, so a returned UiGenerateResponse always carries the XML. This matches the Go SDK's ErrNoDocument and the C++ SDK's NoDocument. The message names the status only; Pain001NoDocumentException.Response holds the decoded body, whose findings can quote payment data.
Methods¶
Pain001NoDocumentException()¶
Creates an exception with a default message.
Pain001NoDocumentException(Int32, UiGenerateResponse)¶
Creates an exception for a generate answer without XML.
| Parameter | Description |
|---|---|
statusCode |
The HTTP status code, in the 2xx range. |
response |
The decoded body. |
Pain001NoDocumentException(String)¶
Creates an exception with the given message.
| Parameter | Description |
|---|---|
message |
What went wrong. |
Pain001NoDocumentException(String, Exception)¶
Creates an exception with a message and its cause.
| Parameter | Description |
|---|---|
message |
What went wrong. |
innerException |
The exception that caused this one. |
Properties¶
Response¶
The decoded body, or null when the exception was not built from a response.
StatusCode¶
The HTTP status code, or 0 when there was no response.