Exception: Como::Opt::ErrorWithData
- Inherits:
-
StandardError
- Object
- StandardError
- Como::Opt::ErrorWithData
- Defined in:
- lib/como.rb
Overview
Create exception with capability to pass arbitrary data
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(message = nil, data = nil) ⇒ ErrorWithData
constructor
A new instance of ErrorWithData.
Constructor Details
#initialize(message = nil, data = nil) ⇒ ErrorWithData
Returns a new instance of ErrorWithData.
694 695 696 697 |
# File 'lib/como.rb', line 694 def initialize( = nil, data = nil ) super( ) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
693 694 695 |
# File 'lib/como.rb', line 693 def data @data end |