Exception: Accounts::AccountsError
- Inherits:
-
Exception
- Object
- Exception
- Accounts::AccountsError
- Defined in:
- lib/accounts/helpers.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ AccountsError
constructor
A new instance of AccountsError.
- #return_error_page ⇒ Object
Constructor Details
#initialize(code, message) ⇒ AccountsError
Returns a new instance of AccountsError.
9 10 11 12 |
# File 'lib/accounts/helpers.rb', line 9 def initialize(code, ) @code = code @message = end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
6 7 8 |
# File 'lib/accounts/helpers.rb', line 6 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
7 8 9 |
# File 'lib/accounts/helpers.rb', line 7 def @message end |
Instance Method Details
#return_error_page ⇒ Object
14 15 16 |
# File 'lib/accounts/helpers.rb', line 14 def return_error_page [ @code, @message ] end |