Exception: DraftPunk::ConfigurationError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/draft_punk.rb

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ ConfigurationError

Returns a new instance of ConfigurationError.



15
16
17
18
# File 'lib/draft_punk.rb', line 15

def initialize(message)
	@caller = caller[0]
  @message = message
end

Instance Method Details

#to_sObject



19
20
21
# File 'lib/draft_punk.rb', line 19

def to_s
  "#{@caller} error: #{@message}"
end