Exception: QueueIt::Api::Error
- Inherits:
-
StandardError
- Object
- StandardError
- QueueIt::Api::Error
- Defined in:
- lib/queue_it/api/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#status ⇒ Object
Returns the value of attribute status.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(msg = nil, status: nil, code: nil, text: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg = nil, status: nil, code: nil, text: nil) ⇒ Error
Returns a new instance of Error.
6 7 8 9 10 11 |
# File 'lib/queue_it/api/error.rb', line 6 def initialize(msg = nil, status: nil, code: nil, text: nil) self.code = code self.text = text self.status = status super(msg) end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/queue_it/api/error.rb', line 4 def code @code end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/queue_it/api/error.rb', line 4 def status @status end |
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/queue_it/api/error.rb', line 4 def text @text end |