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
Exception data.
Instance Method Summary (collapse)
-
- (ErrorWithData) initialize(message = nil, data = nil)
constructor
Create error exception.
Constructor Details
- (ErrorWithData) initialize(message = nil, data = nil)
Create error exception.
855 856 857 858 |
# File 'lib/como.rb', line 855 def initialize( = nil, data = nil ) super( ) @data = data end |
Instance Attribute Details
- (Object) data (readonly)
Exception data.
852 853 854 |
# File 'lib/como.rb', line 852 def data @data end |