Exception: ClientException
- Inherits:
-
Exception
- Object
- Exception
- ClientException
- Defined in:
- lib/simplerdb/client_exception.rb
Overview
Exceptions that are caused by an invalid request from the client.
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#msg ⇒ Object
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(code, msg) ⇒ ClientException
constructor
A new instance of ClientException.
Constructor Details
#initialize(code, msg) ⇒ ClientException
Returns a new instance of ClientException.
5 6 7 8 |
# File 'lib/simplerdb/client_exception.rb', line 5 def initialize(code, msg) @code = code @msg = msg end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/simplerdb/client_exception.rb', line 3 def code @code end |
#msg ⇒ Object
Returns the value of attribute msg.
3 4 5 |
# File 'lib/simplerdb/client_exception.rb', line 3 def msg @msg end |