Class: HammerCLICsv::ExceptionHandler

Inherits:
HammerCLI::ExceptionHandler
  • Object
show all
Defined in:
lib/hammer_cli_csv/exception_handler.rb

Instance Method Summary collapse

Instance Method Details

#mappingsObject



16
17
18
19
20
21
22
23
# File 'lib/hammer_cli_csv/exception_handler.rb', line 16

def mappings
  super + [
    [Exception, :handle_csv_exception],
    [RestClient::Forbidden, :handle_forbidden],
    [RestClient::UnprocessableEntity, :handle_unprocessable_entity],
    [ArgumentError, :handle_argument_error]
  ]
end