Sha256: d7d72ad2262f221668100a0396869b5095a59e5a2e0dc09c2b6d3dae805f4562

Contents?: true

Size: 1.22 KB

Versions: 1

Compression:

Stored size: 1.22 KB

Contents

# frozen_string_literal: true

# 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

1 entries across 1 versions & 1 rubygems

Version Path
docker-api-2.4.0 lib/docker/error.rb