Exception: JIJI::AbstractError
- Inherits:
-
StandardError
- Object
- StandardError
- JIJI::AbstractError
- Defined in:
- lib/jiji/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#info ⇒ Object
Returns the value of attribute info.
Instance Method Summary collapse
- #detail ⇒ Object
-
#initialize(code, message = "", info = {}) ⇒ AbstractError
constructor
A new instance of AbstractError.
Constructor Details
#initialize(code, message = "", info = {}) ⇒ AbstractError
Returns a new instance of AbstractError.
5 6 7 8 9 |
# File 'lib/jiji/error.rb', line 5 def initialize( code, ="", info={} ) super( ) @code = code @info = info end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
13 14 15 |
# File 'lib/jiji/error.rb', line 13 def code @code end |
#info ⇒ Object
Returns the value of attribute info.
14 15 16 |
# File 'lib/jiji/error.rb', line 14 def info @info end |
Instance Method Details
#detail ⇒ Object
10 11 12 |
# File 'lib/jiji/error.rb', line 10 def detail {"code"=>@code,"info"=>@info} end |