class Adama::Errors::BaseError
Attributes
command[R]
error[R]
invoker[R]
Public Class Methods
new(error:, command:, invoker: nil, backtrace: nil)
click to toggle source
# File lib/adama/errors.rb, line 6 def initialize(error:, command:, invoker: nil, backtrace: nil) @error = error @command = command @invoker = invoker set_backtrace backtrace if backtrace end
Public Instance Methods
to_s()
click to toggle source
# File lib/adama/errors.rb, line 13 def to_s "#{command.class.name} failed with #{error.class}: #{error.message}" end