Exception: Cuttlebone::InvalidContextError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cuttlebone/exceptions.rb

Overview

Raised when Controller is invoked with an invalid (not matching) context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context, *args, &block) ⇒ InvalidContextError

Returns a new instance of InvalidContextError.



8
9
10
11
# File 'lib/cuttlebone/exceptions.rb', line 8

def initialize context, *args, &block
  @context = context
  super *args, &block
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



7
8
9
# File 'lib/cuttlebone/exceptions.rb', line 7

def context
  @context
end