class Builderator::Util::AwsException
Exception raised if a safety limit is exceeded
Attributes
exception[R]
Public Class Methods
new(task, exception)
click to toggle source
Calls superclass method
# File lib/builderator/util/aws_exception.rb, line 12 def initialize(task, exception) super(:fail, task, :red) @exception = exception end
Public Instance Methods
message()
click to toggle source
# File lib/builderator/util/aws_exception.rb, line 25 def message "An error occured performing task #{ task }. #{ operation }"\ "(#{ JSON.generate(parameters) }): #{ exception.message }" end
operation()
click to toggle source
# File lib/builderator/util/aws_exception.rb, line 17 def operation @exception.context.operation_name end
parameters()
click to toggle source
# File lib/builderator/util/aws_exception.rb, line 21 def parameters @exception.context.params end