Class
LocalizableException

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

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Utilities

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public class LocalizableException : Exception, ISerializable, _Exception

Inheritance: objectExceptionLocalizableException

Derived Classes: ExpressionExceptionUnsupportedFileFormatExceptionInvalidFormatStringExceptionFilteringExceptionParseExceptionPrintingExceptionProtectionExceptionSortingExceptionSpreadsheetNameExceptionWorkbookHasNoWorksheetExceptionWorkbookNotInitializedException

Implements: ISerializable_Exception

Inherited Members Exception.GetBaseException()Exception.ToString()Exception.GetObjectData(SerializationInfo, StreamingContext)Exception.GetType()Exception.MessageException.DataException.InnerExceptionException.TargetSiteException.StackTraceException.HelpLinkException.SourceException.HResultException.SerializeObjectState

Constructors

LocalizableException()

Initializes a new instance of the LocalizableException class.

Declaration

cs-api-definition
public LocalizableException()

LocalizableException(string)

Initializes a new instance of the LocalizableException class.

Declaration

cs-api-definition
public LocalizableException(string message)

Parameters

message

string

The message.

LocalizableException(string, Exception)

Initializes a new instance of the LocalizableException class.

Declaration

cs-api-definition
public LocalizableException(string message, Exception innerException)

Parameters

message

string

The message.

innerException

Exception

The inner exception.

LocalizableException(string, Exception, string, string[])

Initializes a new instance of the LocalizableException class.

Declaration

cs-api-definition
public LocalizableException(string message, Exception innerException, string key, string[] formatStringArguments = null)

Parameters

message

string

The message.

innerException

Exception

The inner exception.

key

string

The key.

formatStringArguments

string[]

The format string arguments.

LocalizableException(string, string, string[])

Initializes a new instance of the LocalizableException class.

Declaration

cs-api-definition
public LocalizableException(string message, string key, string[] formatStringArguments = null)

Parameters

message

string

The message.

key

string

The key.

formatStringArguments

string[]

The format string arguments.

Properties

FormatStringArguments

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

Declaration

cs-api-definition
public string[] FormatStringArguments { get; }

Property Value

string[]

The format string arguments.

LocalizationKey

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

Declaration

cs-api-definition
public string LocalizationKey { get; protected set; }

Property Value

string

The localization key.