Class InvoiceSerializationException
- Namespace
- NLightning.Bolt11.Exceptions
- Assembly
- NLightning.Bolt11.dll
Represents an exception thrown when an error occurs during invoice serialization or deserialization.
public class InvoiceSerializationException : ErrorException, ISerializable
- Inheritance
-
InvoiceSerializationException
- Implements
- Inherited Members
Constructors
InvoiceSerializationException(string)
public InvoiceSerializationException(string message)
Parameters
message
string
InvoiceSerializationException(string, Exception)
public InvoiceSerializationException(string message, Exception innerException)
Parameters
Methods
ThrowIfNullOrEmpty(string?, string?)
Throws an exception if argument
is null or empty.
public static void ThrowIfNullOrEmpty(string? argument, string? paramName = null)
Parameters
argument
stringThe string argument to validate as non-null and non-empty.
paramName
stringThe name of the parameter with which
argument
corresponds.
Exceptions
- ArgumentNullException
argument
is null.- ArgumentException
argument
is empty.
ThrowIfNullOrWhiteSpace(string?, string?)
Throws an exception if argument
is null, empty, or consists only of white-space characters.
public static void ThrowIfNullOrWhiteSpace(string? argument, string? paramName = null)
Parameters
argument
stringThe string argument to validate.
paramName
stringThe name of the parameter with which
argument
corresponds.
Exceptions
- ArgumentNullException
argument
is null.- ArgumentException
argument
is empty or consists only of white-space characters.