Exception: DraftPunk::HistoricVersionCreationError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- DraftPunk::HistoricVersionCreationError
- Defined in:
- lib/draft_punk.rb
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ HistoricVersionCreationError
constructor
A new instance of HistoricVersionCreationError.
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ HistoricVersionCreationError
Returns a new instance of HistoricVersionCreationError.
27 28 29 |
# File 'lib/draft_punk.rb', line 27 def initialize(=nil) @message = end |
Instance Method Details
#to_s ⇒ Object
30 31 32 |
# File 'lib/draft_punk.rb', line 30 def to_s "could not create previously-approved version: #{@message}" end |