Exception: CALLR::CallrException
- Inherits:
-
Exception
- Object
- Exception
- CALLR::CallrException
- Defined in:
- lib/callr.rb
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.
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(msg, code = 0, data = nil) ⇒ CallrException
constructor
A new instance of CallrException.
Constructor Details
#initialize(msg, code = 0, data = nil) ⇒ CallrException
Returns a new instance of CallrException.
165 166 167 168 169 |
# File 'lib/callr.rb', line 165 def initialize(msg, code = 0, data = nil) @msg = msg @code = code @data = data end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
162 163 164 |
# File 'lib/callr.rb', line 162 def code @code end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
163 164 165 |
# File 'lib/callr.rb', line 163 def data @data end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
161 162 163 |
# File 'lib/callr.rb', line 161 def msg @msg end |