Sha256: 5695fc073bc2647e0063d7ac75f0d6785f3a82efee7b83bdd7ddaed5da4e0695

Contents?: true

Size: 638 Bytes

Versions: 2

Compression:

Stored size: 638 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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
docker-api-1.0.1 lib/docker/error.rb
docker-api-1.0.0 lib/docker/error.rb