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.
796 797 798 799 |
# File 'lib/como.rb', line 796 def initialize( = nil, data = nil ) super( ) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
795 796 797 |
# File 'lib/como.rb', line 795 def data @data end |