Exception: PgVerify::Interpret::NoSuchScriptError
- Inherits:
-
Core::Error
- Object
- StandardError
- Core::Error
- PgVerify::Interpret::NoSuchScriptError
- Defined in:
- lib/pg-verify/interpret/interpret.rb
Instance Method Summary collapse
- #formatted ⇒ Object
-
#initialize(script_path) ⇒ NoSuchScriptError
constructor
A new instance of NoSuchScriptError.
Methods inherited from Core::Error
Constructor Details
#initialize(script_path) ⇒ NoSuchScriptError
Returns a new instance of NoSuchScriptError.
127 128 129 |
# File 'lib/pg-verify/interpret/interpret.rb', line 127 def initialize(script_path) @script_path = script_path end |
Instance Method Details
#formatted ⇒ Object
131 132 133 134 135 136 |
# File 'lib/pg-verify/interpret/interpret.rb', line 131 def formatted() title = "Could not find script at #{@script_path}" body = "No script file at #{@script_path.c_error}!" hint = "Make sure to create a program graph script at \n#{File.(@script_path)}" return title, body, hint end |