Exception: ClientException

Inherits:
Exception
  • Object
show all
Defined in:
lib/simplerdb/client_exception.rb

Overview

Exceptions that are caused by an invalid request from the client.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/simplerdb/client_exception.rb', line 3

def code
  @code
end

#msgObject

Returns the value of attribute msg.



3
4
5
# File 'lib/simplerdb/client_exception.rb', line 3

def msg
  @msg
end