Exception: Ant::Exceptions::AntFail
- Inherits:
-
AntBaseException
- Object
- StandardError
- AntBaseException
- Ant::Exceptions::AntFail
- 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
Instance Method Summary collapse
-
#initialize(message, code = nil, data = {}) ⇒ AntFail
constructor
A new instance of AntFail.
Methods inherited from AntBaseException
Constructor Details
#initialize(message, code = nil, data = {}) ⇒ AntFail
Returns a new instance of AntFail.
52 53 54 55 56 |
# File 'lib/ant/exceptions.rb', line 52 def initialize(, code = nil, data = {}) code ||= self.class.name.split('::').last code = 'BadRequest' if code == 'AntFail' super(, code, data) end |