using System; namespace DTT.Utils.Exceptions { /// /// Thrown when an interaction the lazy dictionary object went wrong. /// public class LazyDictionaryException : RuntimeUtilityException { #region Variables #region Private /// /// The prefixed message in front of any /// /// private const string PREFIX = "- [An error occurred during interaction with a lazy dictionary] - "; #endregion #endregion #region Constructors /// /// Create a with the given message /// to be preceded by the prefix. /// /// The message to show. public LazyDictionaryException(string message) : base(Format(PREFIX, message)) { } /// /// Create a with the given message /// to be preceded by the prefix and inner exception. /// /// The message to show. /// The inner exception thrown. public LazyDictionaryException(string message, Exception innerException) : base(Format(PREFIX, message), innerException) { } #endregion } }