Exception: PgVerify::Interpret::NoSuchScriptError

Inherits:
Core::Error
  • Object
show all
Defined in:
lib/pg-verify/interpret/interpret.rb

Instance Method Summary collapse

Methods inherited from Core::Error

#to_formatted

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

#formattedObject



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.expand_path(@script_path)}"
    return title, body, hint
end