Exception: Granite::Action::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/granite/action/error.rb

Direct Known Subclasses

NotAllowedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, action = nil) ⇒ Error

Returns a new instance of Error.



8
9
10
11
# File 'lib/granite/action/error.rb', line 8

def initialize(message, action = nil)
  @action = action
  super(message)
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



6
7
8
# File 'lib/granite/action/error.rb', line 6

def action
  @action
end