Exception: Academical::Error::ClientError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/academical/error/client_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code) ⇒ ClientError

Returns a new instance of ClientError.



9
10
11
12
# File 'lib/academical/error/client_error.rb', line 9

def initialize(message, code)
  @code = code
  super message
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



7
8
9
# File 'lib/academical/error/client_error.rb', line 7

def code
  @code
end