Exception: Ant::Exceptions::AntSuccess

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

Overview

Is used to express a success 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 = {}) ⇒ AntSuccess

Returns a new instance of AntSuccess.



27
28
29
30
# File 'lib/ant/exceptions.rb', line 27

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