Skip to content

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.ISerializable

Inheritance ObjectExceptionLocalizationExceptionLocalizationFormattingException
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

Type

TargetSite

public MethodBase TargetSite { get; }

Property Value

MethodBase

Message

public string Message { get; }

Property Value

String

Data

public IDictionary Data { get; }

Property Value

IDictionary

InnerException

public Exception InnerException { get; }

Property Value

Exception

public string HelpLink { get; set; }

Property Value

String

Source

public string Source { get; set; }

Property Value

String

HResult

public int HResult { get; set; }

Property Value

Int32

StackTrace

public string StackTrace { get; }

Property Value

String

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;