Sha256: 43c27d23a0150879934bd0d843ccc45e3b4c9b7c90f8dffbf1ba2daebe7d6fde

Contents?: true

Size: 1.38 KB

Versions: 10

Compression:

Stored size: 1.38 KB

Contents

module Rundeck
  module Error
    # Custom error class for rescuing from all Rundeck errors.
    class Error < StandardError; end

    # Raise when attributes are missing.
    class MissingAttributes < Error; end

    # Raise when attributes are invalid.
    class InvalidAttributes < Error; end

    # Raised when API endpoint credentials not configured.
    class MissingCredentials < Error; end

    # Raised when impossible to parse response body.
    class Parsing < Error; end

    # Raised when API endpoint returns the HTTP status code 400.
    class BadRequest < Error; end

    # Raised when API endpoint returns the HTTP status code 401.
    class Unauthorized < Error; end

    # Raised when API endpoint returns the HTTP status code 403.
    class Forbidden < Error; end

    # Raised when API endpoint returns the HTTP status code 404.
    class NotFound < Error; end

    # Raised when API endpoint returns the HTTP status code 405.
    class MethodNotAllowed < Error; end

    # Raised when API endpoint returns the HTTP status code 409.
    class Conflict < Error; end

    # Raised when API endpoint returns the HTTP status code 500.
    class InternalServerError < Error; end

    # Raised when API endpoint returns the HTTP status code 502.
    class BadGateway < Error; end

    # Raised when API endpoint returns the HTTP status code 503.
    class ServiceUnavailable < Error; end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rundeck-1.2.1 lib/rundeck/error.rb
rundeck-1.2.0 lib/rundeck/error.rb
rundeck-1.1.0 lib/rundeck/error.rb
rundeck-1.0.2 lib/rundeck/error.rb
rundeck-1.0.1 lib/rundeck/error.rb
rundeck-0.0.4 lib/rundeck/error.rb
rundeck-0.0.3 lib/rundeck/error.rb
rundeck-0.0.3.pre lib/rundeck/error.rb
rundeck-0.0.2.pre lib/rundeck/error.rb
rundeck-0.0.1.pre lib/rundeck/error.rb