Exception: Kontena::Errors::StandardError

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

Direct Known Subclasses

StandardErrorArray, StandardErrorHash

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, message) ⇒ StandardError

Returns a new instance of StandardError.

Parameters:

  • status (Fixnum)

    HTTP response status

  • message (String)

    short error message



9
10
11
12
# File 'lib/kontena/errors.rb', line 9

def initialize(status, message)
  @status = status
  super(message)
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/kontena/errors.rb', line 5

def status
  @status
end