Exception: Servitium::ContextFailure

Inherits:
Error
  • Object
show all
Defined in:
lib/servitium/context_failure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ ContextFailure

Returns a new instance of ContextFailure.



7
8
9
10
# File 'lib/servitium/context_failure.rb', line 7

def initialize(context)
  @context = context
  super(context.errors.full_messages.join(", "))
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



5
6
7
# File 'lib/servitium/context_failure.rb', line 5

def context
  @context
end