Exception: DraftPunk::ConfigurationError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- DraftPunk::ConfigurationError
- Defined in:
- lib/draft_punk.rb
Instance Method Summary collapse
-
#initialize(message) ⇒ ConfigurationError
constructor
A new instance of ConfigurationError.
- #to_s ⇒ Object
Constructor Details
#initialize(message) ⇒ ConfigurationError
Returns a new instance of ConfigurationError.
15 16 17 18 |
# File 'lib/draft_punk.rb', line 15 def initialize() @caller = caller[0] @message = end |
Instance Method Details
#to_s ⇒ Object
19 20 21 |
# File 'lib/draft_punk.rb', line 19 def to_s "#{@caller} error: #{@message}" end |