Exception: K8s::Error

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

Overview

Top-level class for all errors raised by this gem.

Direct Known Subclasses

API

Defined Under Namespace

Classes: API

Constant Summary collapse

BadRequest =
Class.new(API).freeze
Unauthorized =
Class.new(API).freeze
Forbidden =
Class.new(API).freeze
NotFound =
Class.new(API).freeze
MethodNotAllowed =
Class.new(API).freeze
Conflict =

XXX: also AlreadyExists?

Class.new(API).freeze
Invalid =
Class.new(API).freeze
Timeout =
Class.new(API).freeze
InternalError =
Class.new(API).freeze
ServiceUnavailable =
Class.new(API).freeze
ServerTimeout =
Class.new(API).freeze
HTTP_STATUS_ERRORS =
{
  400 => BadRequest,
  401 => Unauthorized,
  403 => Forbidden,
  404 => NotFound,
  405 => MethodNotAllowed,
  409 => Conflict,
  422 => Invalid,
  429 => Timeout,
  500 => InternalError,
  503 => ServiceUnavailable,
  504 => ServerTimeout
}.freeze
UndefinedResource =

Attempt to create a ResourceClient for an unknown resource type. The client cannot construct the correct API URL without having the APIResource definition.

Class.new(Error)
Configuration =
Class.new(Error)