Exception: Ant::Exceptions::AntBaseException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ant/exceptions.rb

Overview

Exception used as standard error on this gem.

Direct Known Subclasses

AntError, AntFail, AntSuccess

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code, data) ⇒ AntBaseException

Returns a new instance of AntBaseException.



17
18
19
20
21
# File 'lib/ant/exceptions.rb', line 17

def initialize(message, code, data)
  @message = message
  @code = code
  @data = data
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



16
17
18
# File 'lib/ant/exceptions.rb', line 16

def code
  @code
end

#dataObject (readonly)

Returns the value of attribute data.



16
17
18
# File 'lib/ant/exceptions.rb', line 16

def data
  @data
end

#messageObject (readonly)

Returns the value of attribute message.



16
17
18
# File 'lib/ant/exceptions.rb', line 16

def message
  @message
end