Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Abstract class: RT.Lingo.TranslatableException<TTranslation>

Summary

Provides a means for an application to throw exceptions containing translatable messages without the need to pass a TranslationBase-derived object to all methods that could throw exceptions.

Generic type parameters

TTranslation
  • Must derive from: RT.Lingo.TranslationBase.
  • Must have a default constructor.
The type containing the translatable strings.

Constructors

TranslatableException<TTranslation>(Func<TTranslation, string> getMessage)
Constructor.
TranslatableException<TTranslation>(Func<TTranslation, string> getMessage, Exception inner)

Instance methods

string
GetMessage(TTranslation tr)
Returns the translated exception message.