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.



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

def initialize(message)
  @message = message
end

Instance Method Details

#to_sObject



39
40
41
# File 'lib/draft_punk.rb', line 39

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