Sha256: 2a9efcf31ef665b363512374be1d39d9e429a51567eda171f8a30d350b69cef4

Contents?: true

Size: 1.19 KB

Versions: 44

Compression:

Stored size: 1.19 KB

Contents

# This module holds the Errors for the gem.
module Docker::Error

  # The default error. It's never actually raised, but can be used to catch all
  # gem-specific errors that are thrown as they all subclass from this.
  class DockerError < StandardError; end

  # Raised when invalid arguments are passed to a method.
  class ArgumentError < DockerError; end

  # Raised when a request returns a 400.
  class ClientError < DockerError; end

  # Raised when a request returns a 401.
  class UnauthorizedError < DockerError; end

  # Raised when a request returns a 404.
  class NotFoundError < DockerError; end

  # Raised when a request returns a 409.
  class ConflictError < DockerError; end

  # Raised when a request returns a 500.
  class ServerError < DockerError; end

  # Raised when there is an unexpected response code / body.
  class UnexpectedResponseError < DockerError; end

  # Raised when there is an incompatible version of Docker.
  class VersionError < DockerError; end

  # Raised when a request times out.
  class TimeoutError < DockerError; end

  # Raised when login fails.
  class AuthenticationError < DockerError; end

  # Raised when an IO action fails.
  class IOError < DockerError; end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
docker-api-2.3.0 lib/docker/error.rb
docker-api-2.2.0 lib/docker/error.rb
docker-api-2.1.0 lib/docker/error.rb
docker-api-2.0.0 lib/docker/error.rb
docker-api-2.0.0.pre.1 lib/docker/error.rb
docker-api-1.34.2 lib/docker/error.rb
docker-api-1.34.1 lib/docker/error.rb
docker-api-1.34.0 lib/docker/error.rb
docker-api-1.33.6 lib/docker/error.rb
docker-api-1.33.5 lib/docker/error.rb
docker-api-1.33.4 lib/docker/error.rb
docker-api-1.33.3 lib/docker/error.rb
docker-api-1.33.2 lib/docker/error.rb
docker-api-1.33.1 lib/docker/error.rb
docker-api-1.33.0 lib/docker/error.rb
docker-api-1.32.1 lib/docker/error.rb
docker-api-1.32.0 lib/docker/error.rb
docker-api-1.31.0 lib/docker/error.rb
docker-api-1.30.2 lib/docker/error.rb
docker-api-1.30.1 lib/docker/error.rb