namespace Terminal.Gui;
///
/// Thrown when user code attempts to access a property or perform a method
/// that is only supported after Initialization e.g. of an
///
public class NotInitializedException : Exception
{
///
/// Creates a new instance of the exception indicating that the class
/// cannot be used until owner is initialized.
///
/// Property or method name
public NotInitializedException (string memberName) : base ($"{memberName} cannot be accessed before Initialization") { }
///
/// Creates a new instance of the exception with the full message/inner exception.
///
///
///
public NotInitializedException (string msg, Exception innerException) : base (msg, innerException) { }
}