Exception: PictureHandler::Exceptions::WrongArgument

Inherits:
CustomMessage
  • Object
show all
Defined in:
lib/picture_handler/exceptions.rb

Instance Method Summary collapse

Methods inherited from CustomMessage

#message, #orig_to_s, #to_s

Constructor Details

#initialize(method) ⇒ WrongArgument

Returns a new instance of WrongArgument.



35
36
37
# File 'lib/picture_handler/exceptions.rb', line 35

def initialize(method)
  @data = "The argument(s) you provided for the method: \"#{method}\" are incomplete or wrong."
end