Exception: GenesisRuby::ObjectFormatterError

Inherits:
Error
  • Object
show all
Defined in:
lib/genesis_ruby/errors/object_formatter_error.rb

Overview

Invalid Argument Custom Error

Instance Method Summary collapse

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from GenesisRuby::Error

Instance Method Details

#custom_messageObject



9
10
11
12
13
# File 'lib/genesis_ruby/errors/object_formatter_error.rb', line 9

def custom_message
  return 'Invalid format given!' unless @message

  @message
end