Sha256: 2fa699efb0b865d2a5972951c5a189a1aba40e8726636eb21a19c623cd48e01e

Contents?: true

Size: 811 Bytes

Versions: 2

Compression:

Stored size: 811 Bytes

Contents

# frozen_string_literal: true

require 'prolog/dry_types'

# All(?) Rack code is namespaced within this module.
module Rack
  # Module includes our middleware components for managing service API versions.
  module ServiceApiVersioning
    # Exception wrapper class for invalid return data from
    # `EncodedApiVersionData#version_data` due to a bad SBU being specified.
    # Not nested within that class to avoid leaking unnecessary implementation
    # detail, *even though* this class is (presently) only used by that class.
    class InvalidBaseUrlError < RuntimeError
      def initialize(base_url, original_error)
        @original_error = original_error
        super "Invalidly formatted base URL: #{base_url}"
      end

      attr_reader :original_error
    end # class InvalidBaseUrlError
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rack-service_api_versioning-0.1.1 lib/rack/service_api_versioning/encoded_api_version_data/invalid_base_url_error.rb
rack-service_api_versioning-0.1.0 lib/rack/service_api_versioning/encoded_api_version_data/invalid_base_url_error.rb