Exception: Eaco::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Eaco::Error
- Defined in:
- lib/eaco/error.rb
Overview
An Eaco Runtime Error.
Instance Method Summary collapse
-
#initialize(message) ⇒ Error
constructor
As we make use of heredoc for long error messages, squeeze subsequent spaces and remove newlines.
Constructor Details
#initialize(message) ⇒ Error
As we make use of heredoc for long error messages, squeeze subsequent spaces and remove newlines.
10 11 12 13 14 15 16 |
# File 'lib/eaco/error.rb', line 10 def initialize() unless =~ %r{EACO.+Error} = .squeeze(' ').gsub("\n", '') end super end |