Class: DraftPunk::DraftCreationError

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

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ DraftCreationError

Returns a new instance of DraftCreationError.



34
35
36
# File 'lib/draft_punk.rb', line 34

def initialize(message)
  @message = message
end

Instance Method Details

#to_sObject



37
38
39
# File 'lib/draft_punk.rb', line 37

def to_s
  "the draft failed to be created: #{@message}"
end