Sha256: f5edbd454551fc6ae8a666a18cf6c53c24a31a26a6571844b9935e8ecf4e6af6
Contents?: true
Size: 658 Bytes
Versions: 42
Compression:
Stored size: 658 Bytes
Contents
require 'json' require_relative './task_exception' module Builderator module Util ## # Exception raised if a safety limit is exceeded ## class AwsException < TaskException attr_reader :exception def initialize(task, exception) super(:fail, task, :red) @exception = exception end def operation @exception.context.operation_name end def parameters @exception.context.params end def message "An error occured performing task #{ task }. #{ operation }"\ "(#{ JSON.generate(parameters) }): #{ exception.message }" end end end end
Version data entries
42 entries across 42 versions & 1 rubygems