Exception: Yapo::Helpers::CustomErrors::SyntaxError
- Inherits:
-
StandardError
- Object
- StandardError
- Yapo::Helpers::CustomErrors::SyntaxError
- Defined in:
- lib/yapo/helpers/custom_errors.rb
Instance Attribute Summary collapse
-
#original ⇒ Object
readonly
Returns the value of attribute original.
Instance Method Summary collapse
-
#initialize(exception = nil) ⇒ SyntaxError
constructor
A new instance of SyntaxError.
- #message ⇒ Object
Constructor Details
#initialize(exception = nil) ⇒ SyntaxError
Returns a new instance of SyntaxError.
33 34 35 36 |
# File 'lib/yapo/helpers/custom_errors.rb', line 33 def initialize(exception = nil) @original = exception ErrorMessage.new.print() end |
Instance Attribute Details
#original ⇒ Object (readonly)
Returns the value of attribute original.
31 32 33 |
# File 'lib/yapo/helpers/custom_errors.rb', line 31 def original @original end |
Instance Method Details
#message ⇒ Object
38 39 40 41 |
# File 'lib/yapo/helpers/custom_errors.rb', line 38 def "You have a syntax error in your .yapo.yml file.\n" \ "#{@original}\n" end |