Exception: Academical::Error::ClientError
- Inherits:
-
StandardError
- Object
- StandardError
- Academical::Error::ClientError
- Defined in:
- lib/academical/error/client_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ ClientError
constructor
A new instance of ClientError.
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(, code) @code = code super end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/academical/error/client_error.rb', line 7 def code @code end |