Exception: MyGengo::Exception
- Inherits:
-
StandardError
- Object
- StandardError
- MyGengo::Exception
- Defined in:
- lib/mygengo-ruby/mygengo_exception.rb
Overview
Base Exception class and such.
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#msg ⇒ Object
Returns the value of attribute msg.
-
#opstat ⇒ Object
Returns the value of attribute opstat.
Instance Method Summary collapse
-
#initialize(opstat, code, msg) ⇒ Exception
constructor
Pretty self explanatory stuff here…
Constructor Details
#initialize(opstat, code, msg) ⇒ Exception
Pretty self explanatory stuff here…
7 8 9 10 11 12 13 |
# File 'lib/mygengo-ruby/mygengo_exception.rb', line 7 def initialize(opstat, code, msg) @opstat = opstat @code = code @msg = msg puts msg end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/mygengo-ruby/mygengo_exception.rb', line 4 def code @code end |
#msg ⇒ Object
Returns the value of attribute msg.
4 5 6 |
# File 'lib/mygengo-ruby/mygengo_exception.rb', line 4 def msg @msg end |
#opstat ⇒ Object
Returns the value of attribute opstat.
4 5 6 |
# File 'lib/mygengo-ruby/mygengo_exception.rb', line 4 def opstat @opstat end |