Struct TLDError
- Namespace
- Soup
- Assembly
- Soup-3.0.dll
Contains all error codes of the TLDError error-domain.
public readonly ref struct TLDError
- Inherited Members
Constructors
TLDError(int)
Creates a new error in the TLDError domain with a given error code.
public TLDError(int errorCode)
Parameters
errorCodeintA specific error code of the domain
Properties
Any
Can be used to match a GException with any error code of the "TLDError" error-domain.
public static Quark Any { get; }
Property Value
InvalidHostname
Can be used to match a GException with the "InvalidHostname" code (0).
public static TLDError InvalidHostname { get; }
Property Value
IsIpAddress
Can be used to match a GException with the "IsIpAddress" code (1).
public static TLDError IsIpAddress { get; }
Property Value
NoBaseDomain
Can be used to match a GException with the "NoBaseDomain" code (3).
public static TLDError NoBaseDomain { get; }
Property Value
NoPslData
Can be used to match a GException with the "NoPslData" code (4).
public static TLDError NoPslData { get; }
Property Value
NotEnoughDomains
Can be used to match a GException with the "NotEnoughDomains" code (2).
public static TLDError NotEnoughDomains { get; }
Property Value
Operators
implicit operator ErrorCode(TLDError)
Converts a TLDError into a ErrorCode which can be used to match a GException.
public static implicit operator ErrorCode(TLDError e)
Parameters
eTLDError