Sha256: a55ae48cb17481f27a8cac277813fb48c795058bd0213d2e6f10c49e60093b3b

Contents?: true

Size: 1.11 KB

Versions: 26

Compression:

Stored size: 1.11 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 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

26 entries across 26 versions & 1 rubygems

Version Path
docker-api-1.17.0 lib/docker/error.rb
docker-api-1.16.1 lib/docker/error.rb
docker-api-1.16.0 lib/docker/error.rb
docker-api-1.15.0 lib/docker/error.rb
docker-api-1.14.0 lib/docker/error.rb
docker-api-1.13.7 lib/docker/error.rb
docker-api-1.13.6 lib/docker/error.rb
docker-api-1.13.5 lib/docker/error.rb
docker-api-1.13.4 lib/docker/error.rb
docker-api-1.13.3 lib/docker/error.rb
docker-api-1.13.2 lib/docker/error.rb
docker-api-1.13.1 lib/docker/error.rb
docker-api-1.13.0 lib/docker/error.rb
docker-api-1.12.0 lib/docker/error.rb
docker-api-1.11.2 lib/docker/error.rb
docker-api-1.11.1 lib/docker/error.rb
docker-api-1.11.0 lib/docker/error.rb
docker-api-1.10.11 lib/docker/error.rb
docker-api-1.10.10 lib/docker/error.rb
docker-api-1.10.9 lib/docker/error.rb