New to Telerik Document ProcessingStart a free 30-day trial

Exception that carries a localization key and format arguments, enabling display of error messages in the user's preferred language.

Definition

Constructors

Initializes a new instance of the LocalizableException class.

C#
public LocalizableException()

Initializes a new instance of the LocalizableException class.

C#
public LocalizableException(string message, Exception innerException, string key, string[] formatStringArguments = null)
Parameters:messagestring

The message.

innerExceptionException

The inner exception.

keystring

The key.

formatStringArgumentsstring[]

The format string arguments.

Initializes a new instance of the LocalizableException class.

C#
public LocalizableException(string message, Exception innerException)
Parameters:messagestring

The message.

innerExceptionException

The inner exception.

Initializes a new instance of the LocalizableException class.

C#
public LocalizableException(string message, string key, string[] formatStringArguments = null)
Parameters:messagestring

The message.

keystring

The key.

formatStringArgumentsstring[]

The format string arguments.

Initializes a new instance of the LocalizableException class.

C#
public LocalizableException(string message)
Parameters:messagestring

The message.

Properties

Arguments used to format the localized error message template, providing contextual values like parameter names or values.

C#
public string[] FormatStringArguments { get; }
Property Value:

The format string arguments.

The key used to retrieve the localized error message from a resource dictionary.

C#
public string LocalizationKey { get; protected set; }
Property Value:

The localization key.