Exception: Ant::Exceptions::AntBaseException
- Inherits:
-
StandardError
- Object
- StandardError
- Ant::Exceptions::AntBaseException
- Defined in:
- lib/ant/exceptions.rb
Overview
Exception used as standard error on this gem.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, code, data) ⇒ AntBaseException
constructor
A new instance of AntBaseException.
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(, code, data) @message = @code = code @data = data end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
16 17 18 |
# File 'lib/ant/exceptions.rb', line 16 def code @code end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
16 17 18 |
# File 'lib/ant/exceptions.rb', line 16 def data @data end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
16 17 18 |
# File 'lib/ant/exceptions.rb', line 16 def @message end |