LocalizationFormattingException
Namespace: Bogoware.Localization
Thrown when formatting a localizable value fails at runtime, including when a DI-resolved localization provider cannot be invoked via reflection.
public class LocalizationFormattingException : LocalizationException, System.Runtime.Serialization.ISerializableInheritance Object → Exception → LocalizationException → LocalizationFormattingException
Implements ISerializable
Attributes NullableContextAttribute, NullableAttribute
Properties
TargetType
The type that was being localized when the failure occurred, if known.
public Type TargetType { get; }Property Value
TargetSite
public MethodBase TargetSite { get; }Property Value
Message
public string Message { get; }Property Value
Data
public IDictionary Data { get; }Property Value
InnerException
public Exception InnerException { get; }Property Value
HelpLink
public string HelpLink { get; set; }Property Value
Source
public string Source { get; set; }Property Value
HResult
public int HResult { get; set; }Property Value
StackTrace
public string StackTrace { get; }Property Value
Constructors
LocalizationFormattingException(String, Type)
public LocalizationFormattingException(string message, Type targetType)Parameters
message String
A description of the formatting failure.
targetType Type
The type being localized when the failure occurred, or if unknown.
LocalizationFormattingException(String, Exception, Type)
public LocalizationFormattingException(string message, Exception innerException, Type targetType)Parameters
message String
A description of the formatting failure.
innerException Exception
The exception that caused the formatting failure.
targetType Type
The type being localized when the failure occurred, or if unknown.
Events
SerializeObjectState
Caution
BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.
protected event EventHandler<SafeSerializationEventArgs> SerializeObjectState;