Exception: Poefy::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/poefy/exceptions.rb

Direct Known Subclasses

DatabaseError, GenerationError, InputError

Instance Method Summary collapse

Constructor Details

#initialize(short_message, console_message = nil) ⇒ Error

Returns a new instance of Error.



17
18
19
# File 'lib/poefy/exceptions.rb', line 17

def initialize short_message, console_message = nil
  super short_message
end

Instance Method Details

#console_msgObject



14
15
16
# File 'lib/poefy/exceptions.rb', line 14

def console_msg
  "ERROR: " + msg
end