Exception: PgVerify::Interpret::InvalidDSL_graph

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(message) ⇒ InvalidDSL_graph

Returns a new instance of InvalidDSL_graph.



64
65
66
# File 'lib/pg-verify/interpret/interpret.rb', line 64

def initialize(message)
    @message = message
end

Instance Method Details

#formattedObject



67
68
69
70
71
# File 'lib/pg-verify/interpret/interpret.rb', line 67

def formatted()
    hint = [ "Define graphs like this:" ]
    hint << "graph <name> do ... end"
    return @message, nil, hint.join("\n")
end