Sha256: 7b4f760956a53c6ef2d4a5335b707c858820fd37eb464e73ef849960f8ad5734

Contents?: true

Size: 817 Bytes

Versions: 11

Compression:

Stored size: 817 Bytes

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 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
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
docker-api-1.6.0 lib/docker/error.rb
docker-api-1.5.4 lib/docker/error.rb
docker-api-1.5.3 lib/docker/error.rb
docker-api-1.5.2 lib/docker/error.rb
docker-api-1.5.1 lib/docker/error.rb
docker-api-1.5.0 lib/docker/error.rb
docker-api-1.4.0 lib/docker/error.rb
docker-api-1.3.1 lib/docker/error.rb
docker-api-1.3.0 lib/docker/error.rb
docker-api-1.2.0 lib/docker/error.rb
docker-api-1.1.2 lib/docker/error.rb