Class InvoiceSerializationException
- Namespace
- NLightning.Bolt11.Exceptions
- Assembly
- NLightning.Bolt11.dll
Represents an exception thrown when an error occurs during invoice serialization or deserialization.
[ExcludeFromCodeCoverage]
public class InvoiceSerializationException : ErrorException, ISerializable
- Inheritance
-
InvoiceSerializationException
- Implements
- Inherited Members
Constructors
InvoiceSerializationException(string)
public InvoiceSerializationException(string message)
Parameters
messagestring
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
argumentstringThe string argument to validate as non-null and non-empty.
paramNamestringThe name of the parameter with which
argumentcorresponds.
Exceptions
- ArgumentNullException
argumentis null.- ArgumentException
argumentis 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
argumentstringThe string argument to validate.
paramNamestringThe name of the parameter with which
argumentcorresponds.
Exceptions
- ArgumentNullException
argumentis null.- ArgumentException
argumentis empty or consists only of white-space characters.