Exception: Microengine::AdminException

Inherits:
Exception
  • Object
show all
Defined in:
lib/admin_exception.rb

Overview

Exception in admin page ot action. Contain message and code to translate message in error page.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, code = nil) ⇒ AdminException

Returns a new instance of AdminException.



26
27
28
29
# File 'lib/admin_exception.rb', line 26

def initialize(msg = nil, code = nil)
  super(msg)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



24
25
26
# File 'lib/admin_exception.rb', line 24

def code
  @code
end