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)
-
- (Object) data
readonly
Returns the value of attribute data.
Instance Method Summary (collapse)
-
- (ErrorWithData) initialize(message = nil, data = nil)
constructor
A new instance of ErrorWithData.
Constructor Details
- (ErrorWithData) initialize(message = nil, data = nil)
A new instance of ErrorWithData
698 699 700 701 |
# File 'lib/como.rb', line 698 def initialize( = nil, data = nil ) super( ) @data = data end |
Instance Attribute Details
- (Object) data (readonly)
Returns the value of attribute data
697 698 699 |
# File 'lib/como.rb', line 697 def data @data end |