.NET verifier SDK: Verification
IVerifierClient
Section titled “IVerifierClient”Interface in Verifiabl.Verifier
Verifies an already-extracted payload with the Verifiabl API. Depend on this interface to substitute a fake or decorate the client.
The interface has one method, so fakes and decorators stay small. Later
versions add per-verification details to Verifiabl.,
not new members here. To retry a verification, send the same
Verifiabl. again, so every attempt carries its
idempotency key.
public interface IVerifierClientVerifyAsync(VerificationRequest, CancellationToken)
Section titled “VerifyAsync(VerificationRequest, CancellationToken)”Method
Return the payslip data the issuer registered for an extracted payload.
Task<VerificationResult> VerifyAsync(VerificationRequest request, CancellationToken cancellationToken = default)| Parameter | Type | Description |
|---|---|---|
request |
Verifiabl. |
The extracted payload to verify. |
cancellationToken |
System. |
Cancels the call. |
Returns: System.Threading.Tasks.Task{Verifiabl.Verifier.VerificationResult}, The verified data, not an assessment of the document’s visible contents.
Your integration decides how to interpret, compare or map it.
Exceptions
| Type | Condition |
|---|---|
System. |
request is null. |
Verifiabl. |
The barcode could not be verified, including empty or over-long text. |
Verifiabl. |
Authentication could not be completed. Check Verifiabl. before changing credentials. |
Verifiabl. |
Verifiabl returned an error, such as an outage or rate limit. |
Verifiabl. |
Any failure, including timeouts and transport faults. Check Verifiabl.. |
PayloadExtractionException
Section titled “PayloadExtractionException”Class in Verifiabl.Verifier
Thrown by an optional extraction package, such as Verifiabl.Verifier.Extraction,
when no single Verifiabl payload could be read from a document or image.
Nothing was sent to Verifiabl.
No payload was verified, and this is not a failed verification. The input
may not carry a Verifiabl payload, or the copy may be too poor to read;
Verifiabl. says which.
Messages never contain payload text.
public sealed class PayloadExtractionException : VerifierException, ISerializableInheritance: System.Object → System.Exception → Verifiabl.Verifier.VerifierException
Implements: System.Runtime.Serialization.ISerializable
PayloadExtractionException(PayloadExtractionFailure, string, Exception?)
Section titled “PayloadExtractionException(PayloadExtractionFailure, string, Exception?)”Constructor
Create an instance for an extraction package, adapter or test fake.
Keep the message and cause free of payloads, images and personal data.
public PayloadExtractionException(PayloadExtractionFailure failure, string message, Exception? innerException = null)| Parameter | Type | Description |
|---|---|---|
failure |
Verifiabl. |
|
message |
System. |
|
innerException |
System. |
Failure
Section titled “Failure”Property
Why extraction failed.
public PayloadExtractionFailure Failure { get; }Returns: Verifiabl.Verifier.PayloadExtractionFailure
IsRetryable
Section titled “IsRetryable”Property
True only for Verifiabl., which may
succeed with less load. Other failures repeat for the same input.
public override bool IsRetryable { get; }Returns: System.Boolean
PayloadExtractionFailure
Section titled “PayloadExtractionFailure”Enum in Verifiabl.Verifier
Why a Verifiabl. was thrown.
Later versions may add values; treat unknown values like Verifiabl..
public enum PayloadExtractionFailureNotFound
Section titled “NotFound”Field
The input holds no readable Verifiabl payload.
NotFound = 0Returns: Verifiabl.Verifier.PayloadExtractionFailure
Ambiguous
Section titled “Ambiguous”Field
The input holds two different Verifiabl payloads in the same kind of copy, such as two QR codes. Verify each payslip separately.
Ambiguous = 1Returns: Verifiabl.Verifier.PayloadExtractionFailure
LimitExceeded
Section titled “LimitExceeded”Field
The input is larger or more complex than a payslip needs, so it was not read in full.
LimitExceeded = 2Returns: Verifiabl.Verifier.PayloadExtractionFailure
Unreadable
Section titled “Unreadable”Field
The input could not be parsed at all, such as a damaged or encrypted PDF.
Unreadable = 3Returns: Verifiabl.Verifier.PayloadExtractionFailure
TimedOut
Section titled “TimedOut”Field
Extraction did not finish within its time budget.
TimedOut = 4Returns: Verifiabl.Verifier.PayloadExtractionFailure
VerifiablPayloadText
Section titled “VerifiablPayloadText”Class in Verifiabl.Verifier
Recognises Verifiabl payload text found in documents.
These checks only pick Verifiabl candidates out of a page and tell whether
two candidates carry the same payload.
They do not validate a payload; send it to Verifiabl.
unchanged and let the API decide.
public static class VerifiablPayloadTextInheritance: System.Object
IsVerifiablShaped(string)
Section titled “IsVerifiablShaped(string)”Method
Whether text is shaped like a Verifiabl payload: a bare 1|… or
2|… payload, an https scan link on a verifiabl.io host, or an
https scan link on any host that carries a complete payload
(/v/<reference>#<version>.<ciphertext>), as issuers
produce with a custom scan origin. Other QR codes on a page, such as an
issuer’s own, are not. Scan links are never fetched.
public static bool IsVerifiablShaped(string text)| Parameter | Type | Description |
|---|---|---|
text |
System. |
Returns: System.Boolean
AreSamePayload(string, string)
Section titled “AreSamePayload(string, string)”Method
Whether two payload texts carry the same payload, such as two QR codes found on one document. A scan link and a bare payload match when their version, reference and ciphertext agree. Other texts must match exactly.
public static bool AreSamePayload(string first, string second)| Parameter | Type | Description |
|---|---|---|
first |
System. |
|
second |
System. |
Returns: System.Boolean
VerificationRequest
Section titled “VerificationRequest”Class in Verifiabl.Verifier
What to verify: an extracted payload and its idempotency key.
To retry a verification later, keep the request and send the same instance
again. It sends the same Verifiabl., so Verifiabl charges
the verification once.
The barcode is encrypted, but treat it as sensitive and keep it out of logs.
Verifiabl. omits it.
public sealed class VerificationRequestInheritance: System.Object
VerificationRequest(string)
Section titled “VerificationRequest(string)”Constructor
Create a request for barcode text extracted from a QR code or PDF metadata.
public VerificationRequest(string barcode)| Parameter | Type | Description |
|---|---|---|
barcode |
System. |
A scan link such as https://v.verifiabl.io/v/…#2.…, or a bare payload such as 2|…|…. Pass it unchanged; do not trim, decode or fetch the link. Empty or over-long text is rejected by Verifiabl., not here, because extracted text is untrusted input rather than a programming error. |
Exceptions
| Type | Condition |
|---|---|
System. |
barcode is null. |
Barcode
Section titled “Barcode”Property
The extracted barcode text, sent to Verifiabl unchanged.
public string Barcode { get; }Returns: System.String
IdempotencyKey
Section titled “IdempotencyKey”Property
The key that identifies this verification to Verifiabl. Each new request
gets a new key. Every attempt sends it in the Idempotency-Key header.
A retry with the same key and payslip within 1 hour of the key’s first use is not charged again.
Set this property only to retry a verification from a new request, such
as after a restart. Save the key before the first attempt. Do not use one
key for different verifications. A key used for a different payslip, or
first used more than 1 hour ago, causes
Verifiabl..
Store the key with your decision. Use it to ask Verifiabl about this verification or its charge.
public Guid IdempotencyKey { get; init; }Returns: System.Guid
Exceptions
| Type | Condition |
|---|---|
System. |
The value is not a version 1 to 8 UUID, such as one from System.. |
ToString()
Section titled “ToString()”Method
A description without the barcode, so the request is safe to log.
public override string ToString()Returns: System.String
VerificationResult
Section titled “VerificationResult”Class in Verifiabl.Verifier
The data the issuer registered, returned for a verified payload. It is not an assessment of a document.
Verifiabl. holds personal information. Keep it out of logs.
Verifiabl. omits it and the payslip values.
public sealed class VerificationResultInheritance: System.Object
VerificationResult(string, string?, JsonElement, JsonElement, DateTimeOffset)
Section titled “VerificationResult(string, string?, JsonElement, JsonElement, DateTimeOffset)”Constructor
Create a result for an adapter or test fake. This does not perform verification.
JSON objects are cloned so they outlive their source documents. Unknown schemas and fields are preserved; no verifier-specific mapping is applied.
public VerificationResult(string verifiablReference, string? schema, JsonElement payslip, JsonElement employee, DateTimeOffset decryptedAt)| Parameter | Type | Description |
|---|---|---|
verifiablReference |
System. |
|
schema |
System. |
|
payslip |
System. |
|
employee |
System. |
|
decryptedAt |
System. |
VerifiablReference
Section titled “VerifiablReference”Property
The payslip’s Verifiabl reference.
public string VerifiablReference { get; }Returns: System.String
Schema
Section titled “Schema”Property
The payslip schema, such as au.payslip.v2, when the API sends one.
public string? Schema { get; }Returns: System.String
Payslip
Section titled “Payslip”Property
The registered payslip record: schema, issued_at and
payslip_non_pii, as the API returns them. Money values are decimal strings.
public JsonElement Payslip { get; }Returns: System.Text.Json.JsonElement
Employee
Section titled “Employee”Property
The employee details decrypted from the barcode, as the API returns them.
public JsonElement Employee { get; }Returns: System.Text.Json.JsonElement
DecryptedAt
Section titled “DecryptedAt”Property
When Verifiabl decrypted the barcode.
public DateTimeOffset DecryptedAt { get; }Returns: System.DateTimeOffset
RequestId
Section titled “RequestId”Property
The successful response’s X-Request-Id. Keep it so Verifiabl
support can find this verification.
public string? RequestId { get; init; }Returns: System.String
IdempotencyKey
Section titled “IdempotencyKey”Property
The Verifiabl. sent for this
verification. Store it with your decision. Use it to ask Verifiabl about
this verification or its charge.
public Guid? IdempotencyKey { get; init; }Returns: System.Nullable{System.Guid}
ToString()
Section titled “ToString()”Method
The reference and schema only, so the result is safe to log.
public override string ToString()Returns: System.String
VerifierAuth
Section titled “VerifierAuth”Class in Verifiabl.Verifier
How a Verifiabl. authenticates to the Verifiabl API.
Pass the OAuth client ID and secret from your verifier onboarding to
Verifiabl.. The client fetches, caches and refreshes
access tokens itself.
public abstract class VerifierAuthInheritance: System.Object
ClientCredentials(string, string, Uri?)
Section titled “ClientCredentials(string, string, Uri?)”Method
OAuth client credentials issued by Verifiabl during verifier onboarding.
public static VerifierAuth ClientCredentials(string clientId, string clientSecret, Uri? tokenUrl = null)| Parameter | Type | Description |
|---|---|---|
clientId |
System. |
OAuth client ID. |
clientSecret |
System. |
OAuth client secret. Keep it out of logs and source control. |
tokenUrl |
System. |
Token endpoint override for local development. Must be a Verifiabl auth host over https, or localhost. Leave unset to use the environment’s endpoint. |
Returns: Verifiabl.Verifier.VerifierAuth
VerifierAuthException
Section titled “VerifierAuthException”Class in Verifiabl.Verifier
Thrown when authentication could not be completed: the OAuth token request
failed, or the verification API answered 401 or 403. Check
Verifiabl. first; for non-retryable
failures, check credentials, environment and permissions.
public sealed class VerifierAuthException : VerifierException, ISerializableInheritance: System.Object → System.Exception → Verifiabl.Verifier.VerifierException
Implements: System.Runtime.Serialization.ISerializable
VerifierAuthException(string)
Section titled “VerifierAuthException(string)”Constructor
Create an instance for an adapter or test fake. Keep messages free of sensitive data.
public VerifierAuthException(string message)| Parameter | Type | Description |
|---|---|---|
message |
System. |
VerifierAuthException(string, Exception?)
Section titled “VerifierAuthException(string, Exception?)”Constructor
Create an instance for an adapter or test fake. Keep messages and causes free of sensitive data.
public VerifierAuthException(string message, Exception? innerException)| Parameter | Type | Description |
|---|---|---|
message |
System. |
|
innerException |
System. |
Status
Section titled “Status”Property
HTTP status of the failed response, when there was one.
public int? Status { get; init; }Returns: System.Nullable{System.Int32}
Property
Verifiabl. or Verifiabl.
when the verification API refused the call. Null for token endpoint failures.
public string? Code { get; init; }Returns: System.String
IsRetryable
Section titled “IsRetryable”Property
True when the token endpoint was unreachable, sent an unreadable response or returned 408, 429 or 5xx. Other statuses mean the credentials, permissions or token URL need fixing.
public override bool IsRetryable { get; }Returns: System.Boolean
VerifierClient
Section titled “VerifierClient”Class in Verifiabl.Verifier
Client for the Verifiabl verification API.
Create one client and reuse it. It is thread-safe and caches OAuth tokens. The SDK sends extracted payload text unchanged, holds no decryption keys and does not log the payload or result. It does not inspect document contents.
public sealed class VerifierClient : IVerifierClientInheritance: System.Object
Implements: Verifiabl.Verifier.IVerifierClient
MaxBarcodeLength
Section titled “MaxBarcodeLength”Field
The longest barcode text the API accepts. Longer text throws
Verifiabl. without a request.
Read-only rather than constant, so applications use the limit of the SDK version they run with, not the one they compiled against.
public static readonly int MaxBarcodeLengthReturns: System.Int32
VerifierClient(VerifierClientOptions)
Section titled “VerifierClient(VerifierClientOptions)”Constructor
Create a client. See Verifiabl..
public VerifierClient(VerifierClientOptions options)| Parameter | Type | Description |
|---|---|---|
options |
Verifiabl. |
VerifyAsync(VerificationRequest, CancellationToken)
Section titled “VerifyAsync(VerificationRequest, CancellationToken)”Method
Return the payslip data the issuer registered for an extracted payload.
public Task<VerificationResult> VerifyAsync(VerificationRequest request, CancellationToken cancellationToken = default)| Parameter | Type | Description |
|---|---|---|
request |
Verifiabl. |
The extracted payload to verify. |
cancellationToken |
System. |
Cancels the call. |
Returns: System.Threading.Tasks.Task{Verifiabl.Verifier.VerificationResult}, The verified data, not an assessment of the document’s visible contents.
Your integration decides how to interpret, compare or map it.
Exceptions
| Type | Condition |
|---|---|
System. |
request is null. |
Verifiabl. |
The barcode could not be verified, including empty or over-long text. |
Verifiabl. |
Authentication could not be completed. Check Verifiabl. before changing credentials. |
Verifiabl. |
Verifiabl returned an error, such as an outage or rate limit. |
Verifiabl. |
Any failure, including timeouts and transport faults. Check Verifiabl.. |
VerifierClientOptions
Section titled “VerifierClientOptions”Class in Verifiabl.Verifier
Options for constructing a Verifiabl..
public sealed class VerifierClientOptionsInheritance: System.Object
Property
How to authenticate. Required. See Verifiabl..
public VerifierAuth? Auth { get; set; }Returns: Verifiabl.Verifier.VerifierAuth
Environment
Section titled “Environment”Property
API environment. Defaults to production.
public VerifierEnvironment Environment { get; set; }Returns: Verifiabl.Verifier.VerifierEnvironment
VerifierBaseUrl
Section titled “VerifierBaseUrl”Property
Verification API origin override for local development. Most integrations
leave this unset and use Verifiabl.. Must use https, except
localhost may use http.
public Uri? VerifierBaseUrl { get; set; }Returns: System.Uri
Timeout
Section titled “Timeout”Property
Deadline for each verification, including token fetches and retries. Defaults to 30 seconds.
public TimeSpan Timeout { get; set; }Returns: System.TimeSpan
MaxRetries
Section titled “MaxRetries”Property
Maximum automatic retries after the first attempt. Defaults to 2; set 0 to
disable. Rate limits, timeouts, 5xx responses and network faults are
retried with exponential backoff, honouring Retry-After. A retry
whose wait would outlast Verifiabl. is skipped, and the last
failure is thrown with its Verifiabl..
public int MaxRetries { get; set; }Returns: System.Int32
HttpClient
Section titled “HttpClient”Property
The System. to send requests with. The SDK
never disposes it. When unset, a shared internal client is used. The SDK
applies its own deadline, so leave the client’s Timeout at infinite.
public HttpClient? HttpClient { get; set; }Returns: System.Net.Http.HttpClient
VerifierEnvironment
Section titled “VerifierEnvironment”Enum in Verifiabl.Verifier
The Verifiabl environment a Verifiabl. calls.
public enum VerifierEnvironmentProduction
Section titled “Production”Field
Live payslips. The default.
Production = 0Returns: Verifiabl.Verifier.VerifierEnvironment
Sandbox
Section titled “Sandbox”Field
Test payslips that sandbox issuers registered.
Sandbox = 1Returns: Verifiabl.Verifier.VerifierEnvironment
VerifierErrorCodes
Section titled “VerifierErrorCodes”Class in Verifiabl.Verifier
Error codes in Verifiabl.,
Verifiabl. and Verifiabl..
public static class VerifierErrorCodesInheritance: System.Object
NotVerified
Section titled “NotVerified”Field
The payload could not be verified: the barcode text is unreadable, fails
decryption, or has no registered payslip. The API does not say which.
Thrown as Verifiabl..
public const string NotVerified = "NOT_VERIFIED"Returns: System.String
ValidationFailed
Section titled “ValidationFailed”Field
The request was malformed, so the SDK and API disagree about its format.
Thrown as a non-retryable Verifiabl. with
Verifiabl..
public const string ValidationFailed = "VALIDATION_FAILED"Returns: System.String
Unauthorized
Section titled “Unauthorized”Field
The access token was missing or invalid, even after a refresh. Thrown as
Verifiabl..
public const string Unauthorized = "UNAUTHORIZED"Returns: System.String
Forbidden
Section titled “Forbidden”Field
The credentials cannot verify payslips. Thrown as
Verifiabl..
public const string Forbidden = "FORBIDDEN"Returns: System.String
PayloadTooLarge
Section titled “PayloadTooLarge”Field
The request body is larger than the API accepts. The client limits the
barcode length first, so this is a non-retryable
Verifiabl..
public const string PayloadTooLarge = "PAYLOAD_TOO_LARGE"Returns: System.String
UnsupportedMediaType
Section titled “UnsupportedMediaType”Field
The request content type is not supported. Thrown as a non-retryable
Verifiabl..
public const string UnsupportedMediaType = "UNSUPPORTED_MEDIA_TYPE"Returns: System.String
IdempotencyKeyReused
Section titled “IdempotencyKeyReused”Field
The Verifiabl. was used for a
different payslip, or first used more than 1 hour ago. Nothing was
verified or charged. Thrown as a non-retryable
Verifiabl.. To verify again, use a new
Verifiabl..
public const string IdempotencyKeyReused = "IDEMPOTENCY_KEY_REUSED"Returns: System.String
RateLimited
Section titled “RateLimited”Field
Too many requests. Retried automatically up to Verifiabl..
public const string RateLimited = "RATE_LIMITED"Returns: System.String
InternalError
Section titled “InternalError”Field
An unexpected server error, or a response with no Verifiabl error body. Retried automatically.
public const string InternalError = "INTERNAL_ERROR"Returns: System.String
ServiceUnavailable
Section titled “ServiceUnavailable”Field
A Verifiabl dependency is unavailable. Retried automatically.
public const string ServiceUnavailable = "SERVICE_UNAVAILABLE"Returns: System.String
VerifierException
Section titled “VerifierException”Class in Verifiabl.Verifier
Base type for every failure a Verifiabl. or a Verifiabl
extraction package reports, so one catch (VerifierException) covers them all.
Verifiabl. means the payload could not be
verified. Verifiabl. means no payload could
be read from a document, so nothing was verified. Every other subtype is an
operational failure; check Verifiabl. to decide whether to try
again later. Do not put payloads, payslip data or credentials in custom
messages or causes. A null request throws System.,
and a cancellation you requested throws System..
The set of subtypes is closed: extraction packages throw
Verifiabl. rather than defining their own, so
the catch sequence in the README stays complete.
Public constructors take only the values that define a failure. Set optional
diagnostics such as Verifiabl. with an object initializer, so new
diagnostics never change a constructor signature.
public abstract class VerifierException : Exception, ISerializableInheritance: System.Object → System.Exception
Implements: System.Runtime.Serialization.ISerializable
IsRetryable
Section titled “IsRetryable”Property
Whether the same call may succeed later, such as after an outage or rate
limit. It does not show whether the previous attempt completed. To retry,
send the same Verifiabl. again, so Verifiabl does
not charge twice. Verification requests may already have retried up to
Verifiabl. times; token-endpoint
failures are not automatically retried.
public abstract bool IsRetryable { get; }Returns: System.Boolean
RequestId
Section titled “RequestId”Property
The API response’s X-Request-Id, from the last attempt when the call
was retried. Quote it to Verifiabl support. Null when no API response was
handled, such as for token-endpoint and network failures.
public string? RequestId { get; init; }Returns: System.String
RetryAfter
Section titled “RetryAfter”Property
Server-requested delay before another attempt, measured when the response
was handled. Null when no positive, valid Retry-After was supplied.
This is not permission to retry: also check Verifiabl. and
your deadline.
public TimeSpan? RetryAfter { get; init; }Returns: System.Nullable{System.TimeSpan}
IdempotencyKey
Section titled “IdempotencyKey”Property
The Verifiabl. of the failed call.
The verification can complete even when the call fails. Quote the key
when you ask Verifiabl about the verification or its charge. Null when
the SDK did not start a verification call: for a
Verifiabl., and when
Verifiabl. rejects empty or over-long text.
public Guid? IdempotencyKey { get; init; }Returns: System.Nullable{System.Guid}
VerifierFieldError
Section titled “VerifierFieldError”Class in Verifiabl.Verifier
A request field that failed validation.
public sealed class VerifierFieldErrorInheritance: System.Object
VerifierFieldError(string, string)
Section titled “VerifierFieldError(string, string)”Constructor
Create an instance for an adapter or test fake. Keep messages and causes free of sensitive data.
public VerifierFieldError(string path, string message)| Parameter | Type | Description |
|---|---|---|
path |
System. |
|
message |
System. |
Property
The field, such as barcode.
public string Path { get; }Returns: System.String
Message
Section titled “Message”Property
Why it failed.
public string Message { get; }Returns: System.String
VerifierRejectedException
Section titled “VerifierRejectedException”Class in Verifiabl.Verifier
Thrown when the payload could not be verified. The text cannot be read, Verifiabl has no record of it, its issuer has no active key, or it does not decrypt to a valid payslip payload; the API does not say which. A damaged scan or a code from another product or environment gives the same result. Sending the same text again usually gives the same answer, so it is not retryable.
Verifiabl. is Verifiabl.. Quote
Verifiabl. to Verifiabl support to find the cause.
public sealed class VerifierRejectedException : VerifierException, ISerializableInheritance: System.Object → System.Exception → Verifiabl.Verifier.VerifierException
Implements: System.Runtime.Serialization.ISerializable
VerifierRejectedException(string, string)
Section titled “VerifierRejectedException(string, string)”Constructor
Create a rejection for an adapter or test fake.
Keep messages and detail free of payloads, payslip data and credentials.
public VerifierRejectedException(string code, string message)| Parameter | Type | Description |
|---|---|---|
code |
System. |
|
message |
System. |
Property
Verifiabl..
public string Code { get; }Returns: System.String
Status
Section titled “Status”Property
HTTP status code, or null when the client checked the text without sending it.
public int? Status { get; init; }Returns: System.Nullable{System.Int32}
Reason
Section titled “Reason”Property
A finer cause, sent only by the issuer self-test routes so issuers can debug their own payslips. Verifier routes send none.
public string? Reason { get; init; }Returns: System.String
Detail
Section titled “Detail”Property
Extra detail, when the API sends it.
public string? Detail { get; init; }Returns: System.String
IsRetryable
Section titled “IsRetryable”Property
Whether the same call may succeed later, such as after an outage or rate
limit. It does not show whether the previous attempt completed. To retry,
send the same Verifiabl. again, so Verifiabl does
not charge twice. Verification requests may already have retried up to
Verifiabl. times; token-endpoint
failures are not automatically retried.
public override bool IsRetryable { get; }Returns: System.Boolean
VerifierServiceException
Section titled “VerifierServiceException”Class in Verifiabl.Verifier
Thrown when Verifiabl returns an error that is not a failed verification or
about the credentials, such as an outage, a rate limit or a malformed request. Check
Verifiabl., and quote
Verifiabl. to Verifiabl support. Match on
Verifiabl., not the message.
Payloads that could not be verified throw Verifiabl., and 401 or 403
responses throw Verifiabl..
public sealed class VerifierServiceException : VerifierException, ISerializableInheritance: System.Object → System.Exception → Verifiabl.Verifier.VerifierException
Implements: System.Runtime.Serialization.ISerializable
VerifierServiceException(int, string, string)
Section titled “VerifierServiceException(int, string, string)”Constructor
Create a service failure for an adapter or test fake.
Keep messages, detail and field errors free of payloads, payslip data and credentials.
public VerifierServiceException(int status, string code, string message)| Parameter | Type | Description |
|---|---|---|
status |
System. |
|
code |
System. |
|
message |
System. |
Status
Section titled “Status”Property
HTTP status code.
public int Status { get; }Returns: System.Int32
Property
Stable error code, such as Verifiabl..
Verifiabl. when the response had no
Verifiabl error body.
public string Code { get; }Returns: System.String
Reason
Section titled “Reason”Property
A finer reason for some codes, when the API sends one.
public string? Reason { get; init; }Returns: System.String
Detail
Section titled “Detail”Property
Extra detail, when the API sends it.
public string? Detail { get; init; }Returns: System.String
FieldErrors
Section titled “FieldErrors”Property
The request fields that failed validation. Empty for other errors.
public IReadOnlyList<VerifierFieldError> FieldErrors { get; init; }Returns: System.Collections.Generic.IReadOnlyList{Verifiabl.Verifier.VerifierFieldError}
IsRetryable
Section titled “IsRetryable”Property
True for 408, 429 and 5xx responses.
public override bool IsRetryable { get; }Returns: System.Boolean
VerifierTimeoutException
Section titled “VerifierTimeoutException”Class in Verifiabl.Verifier
Thrown when a verification exceeds Verifiabl.,
including token fetches and retries.
public sealed class VerifierTimeoutException : VerifierException, ISerializableInheritance: System.Object → System.Exception → Verifiabl.Verifier.VerifierException
Implements: System.Runtime.Serialization.ISerializable
VerifierTimeoutException(string, TimeSpan)
Section titled “VerifierTimeoutException(string, TimeSpan)”Constructor
Create an instance for an adapter or test fake. Keep messages and causes free of sensitive data.
public VerifierTimeoutException(string message, TimeSpan timeout)| Parameter | Type | Description |
|---|---|---|
message |
System. |
|
timeout |
System. |
Timeout
Section titled “Timeout”Property
The deadline that was exceeded.
public TimeSpan Timeout { get; }Returns: System.TimeSpan
IsRetryable
Section titled “IsRetryable”Property
Whether the same call may succeed later, such as after an outage or rate
limit. It does not show whether the previous attempt completed. To retry,
send the same Verifiabl. again, so Verifiabl does
not charge twice. Verification requests may already have retried up to
Verifiabl. times; token-endpoint
failures are not automatically retried.
public override bool IsRetryable { get; }Returns: System.Boolean
VerifierTransportException
Section titled “VerifierTransportException”Class in Verifiabl.Verifier
Thrown when the request fails before a response arrives, or a 2xx response
is not the shape the SDK expects. The cause is in System..
public sealed class VerifierTransportException : VerifierException, ISerializableInheritance: System.Object → System.Exception → Verifiabl.Verifier.VerifierException
Implements: System.Runtime.Serialization.ISerializable
VerifierTransportException(string)
Section titled “VerifierTransportException(string)”Constructor
Create a retryable failure for an adapter or test fake. Keep messages free of sensitive data.
public VerifierTransportException(string message)| Parameter | Type | Description |
|---|---|---|
message |
System. |
VerifierTransportException(string, Exception?)
Section titled “VerifierTransportException(string, Exception?)”Constructor
Create a retryable failure for an adapter or test fake. Keep messages and causes free of sensitive data.
public VerifierTransportException(string message, Exception? innerException)| Parameter | Type | Description |
|---|---|---|
message |
System. |
|
innerException |
System. |
VerifierTransportException(string, Exception?, bool)
Section titled “VerifierTransportException(string, Exception?, bool)”Constructor
Create an instance for an adapter or test fake. Keep messages and causes free of sensitive data.
public VerifierTransportException(string message, Exception? innerException, bool isRetryable)| Parameter | Type | Description |
|---|---|---|
message |
System. |
|
innerException |
System. |
|
isRetryable |
System. |
Status
Section titled “Status”Property
HTTP status when a response arrived but could not be parsed; otherwise null.
public int? Status { get; init; }Returns: System.Nullable{System.Int32}
IsRetryable
Section titled “IsRetryable”Property
True for network faults. False when a 2xx response was malformed: the API
answered, so a retry would likely get the same response. Quote
Verifiabl. to Verifiabl support.
public override bool IsRetryable { get; }Returns: System.Boolean