Exception: Themis::ThemisError
- Inherits:
-
StandardError
- Object
- StandardError
- Themis::ThemisError
- Defined in:
- lib/rbthemis.rb
Overview
Common class of errors caused by Themis functions. You can access the numerical value via “error_code” attribute. Human-readable message is accessible via “message” attribute.
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(error_code = INVALID_ARGUMENT) ⇒ ThemisError
constructor
A new instance of ThemisError.
Constructor Details
#initialize(error_code = INVALID_ARGUMENT) ⇒ ThemisError
Returns a new instance of ThemisError.
194 195 196 197 |
# File 'lib/rbthemis.rb', line 194 def initialize(error_code = INVALID_ARGUMENT) super @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
192 193 194 |
# File 'lib/rbthemis.rb', line 192 def error_code @error_code end |