Sha256: 7132f7bc89ec1fc0132eaa2cb9efabadd025b2b4a68af249bbfb2adf37c1a488

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

module Mountapi
  module Error
    class HandlerMissing < StandardError
      def initialize(name)
        @name = name
        super(title)
      end

      def to_json_api
        {
          title: title,
          status: 500
        }
      end

      private

      def title
        "Could not find handler for operation_id: #{@name} in registry"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mountapi-0.11.1 lib/mountapi/error/handler_missing.rb