Exception: Appwrite::Exception
- Inherits:
-
StandardError
- Object
- StandardError
- Appwrite::Exception
- Defined in:
- lib/appwrite/exception.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(message, code = 0, type = nil, response = nil) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#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(, code = 0, type = nil, response = nil) super() @code = code @type = type @response = response end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/appwrite/exception.rb', line 3 def code @code end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
4 5 6 |
# File 'lib/appwrite/exception.rb', line 4 def response @response end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/appwrite/exception.rb', line 5 def type @type end |