Exception: Themis::ThemisError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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_codeObject (readonly)

Returns the value of attribute error_code.



192
193
194
# File 'lib/rbthemis.rb', line 192

def error_code
  @error_code
end