Exception: Kintone::KintoneError
- Defined in:
- lib/kintone/kintone_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#message_text ⇒ Object
readonly
Returns the value of attribute message_text.
Instance Method Summary collapse
-
#initialize(messages, http_status) ⇒ KintoneError
constructor
A new instance of KintoneError.
Constructor Details
#initialize(messages, http_status) ⇒ KintoneError
Returns a new instance of KintoneError.
4 5 6 7 8 9 10 |
# File 'lib/kintone/kintone_error.rb', line 4 def initialize(, http_status) @message_text = ['message'] @id = ['id'] @code = ['code'] @http_status = http_status super(format('%s [%s] %s(%s)', @http_status, @code, @message_text, @id)) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
2 3 4 |
# File 'lib/kintone/kintone_error.rb', line 2 def code @code end |
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
2 3 4 |
# File 'lib/kintone/kintone_error.rb', line 2 def http_status @http_status end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
2 3 4 |
# File 'lib/kintone/kintone_error.rb', line 2 def id @id end |
#message_text ⇒ Object (readonly)
Returns the value of attribute message_text.
2 3 4 |
# File 'lib/kintone/kintone_error.rb', line 2 def @message_text end |