Exception: BlestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/blest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ BlestError

Returns a new instance of BlestError.



449
450
451
452
453
454
455
# File 'lib/blest.rb', line 449

def initialize(message = nil)
  @status = 500
  @code = nil
  @data = nil
  @stack = nil
  super(message)
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



445
446
447
# File 'lib/blest.rb', line 445

def code
  @code
end

#dataObject

Returns the value of attribute data.



446
447
448
# File 'lib/blest.rb', line 446

def data
  @data
end

#stackObject

Returns the value of attribute stack.



447
448
449
# File 'lib/blest.rb', line 447

def stack
  @stack
end

#statusObject

Returns the value of attribute status.



444
445
446
# File 'lib/blest.rb', line 444

def status
  @status
end