Exception: Ast::Crispr::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Ast::Crispr::Error
- Defined in:
- lib/ast/crispr.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Instance Method Summary collapse
-
#initialize(message, code: 'ast_crispr_error', details: {}, **options) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code: 'ast_crispr_error', details: {}, **options) ⇒ Error
Returns a new instance of Error.
14 15 16 17 18 |
# File 'lib/ast/crispr.rb', line 14 def initialize(, code: 'ast_crispr_error', details: {}, **) @code = code @details = details.merge() super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
12 13 14 |
# File 'lib/ast/crispr.rb', line 12 def code @code end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
12 13 14 |
# File 'lib/ast/crispr.rb', line 12 def details @details end |