namespace Terminal.Gui.App; /// /// Thrown when user code attempts to access a property or perform a method /// Exception type thrown when trying to use a property or method /// that is only supported after initialization, e.g. of an /// public class NotInitializedException : InvalidOperationException { /// /// 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) { } }