Class: AtlasEngine::CodedErrors

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

Direct Known Subclasses

AddressValidation::Errors

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

.error(code, message) ⇒ Object



12
13
14
# File 'app/models/atlas_engine/coded_errors.rb', line 12

def error(code, message)
  CodedError.new(code, message)
end