Class TemplateKeyNotFoundException
- Namespace
- Tlumach.Templating
- Assembly
- Tlumach.dll
Thrown by TemplateTranslator for a key that no translation contains, when MissingKey is Throw.
public class TemplateKeyNotFoundException : TlumachException, ISerializable
- Inheritance
-
TemplateKeyNotFoundException
- Implements
- Inherited Members
Constructors
TemplateKeyNotFoundException()
Initializes a new instance of the TemplateKeyNotFoundException class.
public TemplateKeyNotFoundException()
TemplateKeyNotFoundException(string)
Initializes a new instance of the TemplateKeyNotFoundException class with the given message.
public TemplateKeyNotFoundException(string message)
Parameters
messagestringThe message that describes the error.
TemplateKeyNotFoundException(string, Exception)
Initializes a new instance of the TemplateKeyNotFoundException class with the given message and the exception that caused this one.
public TemplateKeyNotFoundException(string message, Exception innerException)
Parameters
messagestringThe message that describes the error.
innerExceptionExceptionThe exception that is the cause of this exception.
TemplateKeyNotFoundException(string, CultureInfo)
Initializes a new instance of the TemplateKeyNotFoundException class for a missing key.
public TemplateKeyNotFoundException(string key, CultureInfo culture)
Parameters
keystringThe full key, with the key prefix.
cultureCultureInfoThe culture of the call.
Properties
Culture
Gets the culture of the call.
public CultureInfo? Culture { get; }
Property Value
Key
Gets the full key, with the key prefix.
public string? Key { get; }