Exception: ThreeScaleToolbox::UnexpectedError
- Inherits:
-
StandardError
- Object
- StandardError
- ThreeScaleToolbox::UnexpectedError
- Defined in:
- lib/3scale_toolbox/error.rb
Instance Attribute Summary collapse
-
#unexpectederror ⇒ Object
readonly
Returns the value of attribute unexpectederror.
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(err) ⇒ UnexpectedError
constructor
A new instance of UnexpectedError.
- #kind ⇒ Object
- #message ⇒ Object
- #stacktrace ⇒ Object
Constructor Details
#initialize(err) ⇒ UnexpectedError
Returns a new instance of UnexpectedError.
62 63 64 |
# File 'lib/3scale_toolbox/error.rb', line 62 def initialize(err) @unexpectederror = err end |
Instance Attribute Details
#unexpectederror ⇒ Object (readonly)
Returns the value of attribute unexpectederror.
60 61 62 |
# File 'lib/3scale_toolbox/error.rb', line 60 def unexpectederror @unexpectederror end |
Instance Method Details
#code ⇒ Object
74 75 76 |
# File 'lib/3scale_toolbox/error.rb', line 74 def code 'E_UNKNOWN' end |
#kind ⇒ Object
70 71 72 |
# File 'lib/3scale_toolbox/error.rb', line 70 def kind unexpectederror.class end |
#message ⇒ Object
66 67 68 |
# File 'lib/3scale_toolbox/error.rb', line 66 def unexpectederror. end |
#stacktrace ⇒ Object
78 79 80 |
# File 'lib/3scale_toolbox/error.rb', line 78 def stacktrace unexpectederror.backtrace end |