Module: Asherah::Error
- Defined in:
- lib/asherah/error.rb
Overview
Asherah Error converts the error code to error message
Constant Summary collapse
- ConfigError =
Class.new(StandardError)
- NotInitialized =
Class.new(StandardError)
- AlreadyInitialized =
Class.new(StandardError)
- GetSessionFailed =
Class.new(StandardError)
- EncryptFailed =
Class.new(StandardError)
- DecryptFailed =
Class.new(StandardError)
- BadConfig =
Class.new(StandardError)
- CODES =
{ -100 => NotInitialized, -101 => AlreadyInitialized, -102 => GetSessionFailed, -103 => EncryptFailed, -104 => DecryptFailed, -105 => BadConfig }.freeze