Module: SelfCrypto::OlmError
- Defined in:
- lib/self_crypto/olm_error.rb
Defined Under Namespace
Classes: BAD_ACCOUNT_KEY, BAD_LEGACY_ACCOUNT_PICKLE, BAD_MESSAGE_FORMAT, BAD_MESSAGE_KEY_ID, BAD_MESSAGE_MAC, BAD_MESSAGE_VERSION, BAD_SESSION_KEY, BAD_SIGNATURE, CORRUPTED_PICKLE, INVALID_BASE64, NOT_ENOUGH_RANDOM, OLM_INPUT_BUFFER_TOO_SMALL, OUTPUT_BUFFER_TOO_SMALL, SUCCESS, UNKNOWN_MESSAGE_INDEX, UNKNOWN_PICKLE_VERSION, UnknownError
Class Method Summary
collapse
Class Method Details
.from_string(str) ⇒ Object
56
57
58
59
60
61
62
|
# File 'lib/self_crypto/olm_error.rb', line 56
def self.from_string(str)
begin
OlmError.const_get(str)
rescue NameError
UnknownError.new str
end
end
|
.raise_from_string(str) ⇒ Object
64
65
66
|
# File 'lib/self_crypto/olm_error.rb', line 64
def self.raise_from_string(str)
raise from_string(str)
end
|