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.



8
9
10
11
# File 'lib/draft_punk.rb', line 8

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

Instance Method Details

#to_sObject



12
13
14
# File 'lib/draft_punk.rb', line 12

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