Class InvalidPatternException
Exception thrown to indicate that the format pattern provided for either formatting or parsing is invalid.
Since 1.0.x
Availability net6.0, net8.0, netstandard2.0
Implements
Inherited Members
Namespace: NodaTime.Text
Assembly: NodaTime.dll
Syntax
public sealed class InvalidPatternException : FormatException, ISerializable
Constructors
InvalidPatternException()
Creates a new InvalidPatternException with the default FormatException message.
Since 1.0.x
Availability net6.0, net8.0, netstandard2.0
Declaration
public InvalidPatternException()
InvalidPatternException(string)
Creates a new InvalidPatternException with the given message.
Since 1.0.x
Availability net6.0, net8.0, netstandard2.0
Declaration
public InvalidPatternException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | A message describing the nature of the failure |