Method: Appwrite::Exception#initialize

Defined in:
lib/appwrite/exception.rb

#initialize(message, code = 0, type = nil, response = nil) ⇒ Exception

Returns a new instance of Exception.



7
8
9
10
11
12
# File 'lib/appwrite/exception.rb', line 7

def initialize(message, code = 0, type = nil, response = nil)
    super(message)
    @code = code
    @type = type
    @response = response
end