# Kubernetes HTTP Exceptions
class KubeException < Exception
  attr_reader :error_code, :message

  def initialize(error_code, message)
    @error_code = error_code
    @message = message
  end

  def to_s
    'HTTP status code ' + @error_code.to_s + ', ' + @message
  end
end

# Kubernetes HTTP Exceptions
class KubeException < StandardError
  attr_reader :error_code, :message

  def initialize(error_code, message)
    @error_code = error_code
    @message = message
  end

  def to_s
    'HTTP status code ' + @error_code.to_s + ', ' + @message
  end
end

Update KubeException to inherit StandardError
Update KubeException to inherit StandardError

Currently, KubeException inherits from Exception, which is bad because
the default "rescue" behaviour is to catch only exception which are
StandardException.
