Exception: Accounts::AccountsError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message)
  @code = code
  @message = message
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



6
7
8
# File 'lib/accounts/helpers.rb', line 6

def code
  @code
end

#messageObject

Returns the value of attribute message.



7
8
9
# File 'lib/accounts/helpers.rb', line 7

def message
  @message
end

Instance Method Details

#return_error_pageObject



14
15
16
# File 'lib/accounts/helpers.rb', line 14

def return_error_page
  [ @code, @message ]
end