Sha256: 594210e8481dbb08277020707430c9954769836a9dec33324f5135a6899fc5a0

Contents?: true

Size: 1.42 KB

Versions: 4

Compression:

Stored size: 1.42 KB

Contents

# frozen_string_literal: true

module Salestation
  class App
    module Errors
      class InvalidInput < Dry::Struct
        attribute :errors, Types::Strict::Hash
        attribute :hints, Types::Coercible::Hash.default({}.freeze)
        attribute? :debug_message, Types::Strict::String
      end

      class DependencyCurrentlyUnavailable < Dry::Struct
        attribute :message, Types::Strict::String
        attribute? :debug_message, Types::Strict::String
      end

      class RequestedResourceNotFound < Dry::Struct
        attribute :message, Types::Strict::String
        attribute? :debug_message, Types::Strict::String
      end

      class Forbidden < Dry::Struct
        attribute :message, Types::Strict::String
        attribute? :debug_message, Types::Strict::String
      end

      class Conflict < Dry::Struct
        attribute :message, Types::Strict::String
        attribute :debug_message, Types::Strict::String
      end

      class NotAcceptable < Dry::Struct
        attribute :message, Types::Strict::String
        attribute :debug_message, Types::Strict::String
      end

      class UnsupportedMediaType < Dry::Struct
        attribute :message, Types::Strict::String
        attribute :debug_message, Types::Strict::String
      end

      class RequestEntityTooLarge < Dry::Struct
        attribute :message, Types::Strict::String
        attribute? :debug_message, Types::Strict::String
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
salestation-3.8.1 lib/salestation/app/errors.rb
salestation-3.8.0 lib/salestation/app/errors.rb
salestation-3.7.0 lib/salestation/app/errors.rb
salestation-3.6.0 lib/salestation/app/errors.rb