class ProconBypassMan::SendErrorCommand # @param [String, Hash, Exception] error # @return [void] def self.execute(error: ) body = case error when String, Hash error else error.full_message end ProconBypassMan.logger.error body puts body ProconBypassMan::ReportErrorJob.perform_async(error) end end