Exception: Microengine::AdminException
- Inherits:
-
Exception
- Object
- Exception
- Microengine::AdminException
- 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
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg = nil, code = nil) ⇒ AdminException
constructor
A new instance of AdminException.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
24 25 26 |
# File 'lib/admin_exception.rb', line 24 def code @code end |