Exception: QueueIt::Api::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/queue_it/api/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



4
5
6
# File 'lib/queue_it/api/error.rb', line 4

def code
  @code
end

#statusObject

Returns the value of attribute status.



4
5
6
# File 'lib/queue_it/api/error.rb', line 4

def status
  @status
end

#textObject

Returns the value of attribute text.



4
5
6
# File 'lib/queue_it/api/error.rb', line 4

def text
  @text
end