Exception: AtlasEngine::CodedError

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Defined in:
app/models/atlas_engine/coded_error.rb

Constant Summary collapse

ErrorCode =
T.type_alias { T.any(Symbol, String) }

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ CodedError

Returns a new instance of CodedError.



13
14
15
16
# File 'app/models/atlas_engine/coded_error.rb', line 13

def initialize(code, message)
  @code = code
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'app/models/atlas_engine/coded_error.rb', line 10

def code
  @code
end