Exception: Ast::Crispr::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ast/crispr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, code: 'ast_crispr_error', details: {}, **options)
  @code = code
  @details = details.merge(options)
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



12
13
14
# File 'lib/ast/crispr.rb', line 12

def code
  @code
end

#detailsObject (readonly)

Returns the value of attribute details.



12
13
14
# File 'lib/ast/crispr.rb', line 12

def details
  @details
end