Method: Sym::Application#execute

Defined in:
lib/sym/application.rb

#executeObject



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/sym/application.rb', line 50

def execute
  execute!

rescue ::OpenSSL::Cipher::CipherError => e
  error type:      'Cipher Error',
        details:   e.message,
        reason:    'Perhaps either the secret is invalid, or encrypted data is corrupt.',
        exception: e

rescue Sym::Errors::Error => e
  error type:    e.class.name.split(/::/)[-1],
        details: e.message

rescue StandardError => e
  error exception: e
end