Exception: ActionController::Error::Exception

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/vex/action_controller/error.rb

Overview

I don’t know why we have to pack the parameters into an array.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Exception

Returns a new instance of Exception.



7
8
9
# File 'lib/vex/action_controller/error.rb', line 7

def initialize(args)
  @code, @text = *args
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



5
6
7
# File 'lib/vex/action_controller/error.rb', line 5

def code
  @code
end

#textObject (readonly)

Returns the value of attribute text.



5
6
7
# File 'lib/vex/action_controller/error.rb', line 5

def text
  @text
end