Exception: Ant::Exceptions::AntFail

Inherits:
AntBaseException show all
Defined in:
lib/ant/exceptions.rb

Overview

Is used to express a problem with the client’s request.

Instance Attribute Summary

Attributes inherited from AntBaseException

#code, #data, #message

Instance Method Summary collapse

Constructor Details

#initialize(message, code = nil, data = {}) ⇒ AntFail

Returns a new instance of AntFail.



36
37
38
39
40
# File 'lib/ant/exceptions.rb', line 36

def initialize(message, code = nil, data = {})
  code ||= self.class.name.split('::').last
  code = 'BadRequest' if code == 'AntFail'
  super(message, code, data)
end