Exception: Teek::UI::NotRealizedError
- Inherits:
-
StandardError
- Object
- StandardError
- Teek::UI::NotRealizedError
- Defined in:
- lib/teek/ui/errors.rb
Overview
Raised by any genuinely realize-only method (Session#app, dialogs, #clipboard, Handle#path/#configure/#modal/#grab_release, ...) called before its node/session has been realized. These don't queue for later - the whole point of a Tk-free build phase is that nothing is pretending to talk to an interpreter that doesn't exist yet, and each of these either IS the live app/widget by definition or needs one to do anything meaningful (grabbing input, popping a native dialog). In practice this is rarely hit in real code: all of them are normally called from inside an on_* event handler, which only ever runs after realize - see Session#every/Session#after for the one case that genuinely IS deferrable, and queues instead.
Instance Method Summary collapse
-
#initialize(msg = "not realized yet - call this from an on_* event handler (already " \ "post-realize), or after #run/#run_async/#realize") ⇒ NotRealizedError
constructor
A new instance of NotRealizedError.
Constructor Details
#initialize(msg = "not realized yet - call this from an on_* event handler (already " \ "post-realize), or after #run/#run_async/#realize") ⇒ NotRealizedError
Returns a new instance of NotRealizedError.
17 18 19 20 |
# File 'lib/teek/ui/errors.rb', line 17 def initialize(msg = "not realized yet - call this from an on_* event handler (already " \ "post-realize), or after #run/#run_async/#realize") super end |