Exception: PgVerify::Interpret::InvalidDSL_expression
- Inherits:
-
Core::Error
- Object
- StandardError
- Core::Error
- PgVerify::Interpret::InvalidDSL_expression
- Defined in:
- lib/pg-verify/interpret/interpret.rb
Instance Method Summary collapse
- #formatted ⇒ Object
-
#initialize(type, message) ⇒ InvalidDSL_expression
constructor
A new instance of InvalidDSL_expression.
Methods inherited from Core::Error
Constructor Details
#initialize(type, message) ⇒ InvalidDSL_expression
Returns a new instance of InvalidDSL_expression.
88 89 90 |
# File 'lib/pg-verify/interpret/interpret.rb', line 88 def initialize(type, ) @type, @message = type, end |
Instance Method Details
#formatted ⇒ Object
91 92 93 94 95 96 97 |
# File 'lib/pg-verify/interpret/interpret.rb', line 91 def formatted() hint = [ "Define #{@type}s like this:" ] hint << "#{@type} <expression>" hint << " where" hint << " <expression> is a valid expression as a string or symbol" return @message, nil, hint.join("\n") end |