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, netstandard2.0
Inheritance
Object
Exception
SystemException
FormatException
InvalidPatternException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
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, netstandard2.0
Declaration
public InvalidPatternException()
InvalidPatternException(String)
Creates a new InvalidPatternException with the given message.
Since 1.0.x
Availability net6.0, netstandard2.0
Declaration
public InvalidPatternException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | A message describing the nature of the failure |
Implements
System.Runtime.Serialization.ISerializable