Sha256: f1fc6e16c228dfb119dc46eda411ec2219608cb13ccb21b3042c72df76c75180

Contents?: true

Size: 676 Bytes

Versions: 8

Compression:

Stored size: 676 Bytes

Contents

# frozen_string_literal: true

require_relative 'json_schema/schemas'

module Meta
  module Errors
    class NoMatchingRoute < StandardError; end

    class ParameterInvalid < JsonSchema::ValidationErrors
      def initialize(errors)
        super(errors, "参数异常:#{errors}")
      end
    end

    class RenderingInvalid < JsonSchema::ValidationErrors
      def initialize(errors = {})
        super(errors, "渲染实体异常:#{errors}")
      end
    end

    class RenderingError < StandardError; end

    class NotAuthorized < StandardError; end

    class ResourceNotFound < StandardError; end

    class UnsupportedContentType < StandardError; end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
meta-api-0.2.0 lib//meta/errors.rb
meta-api-0.1.2 lib//meta/errors.rb
meta-api-0.1.1 lib//meta/errors.rb
meta-api-0.1.0 lib//meta/errors.rb
meta-api-0.0.9 lib//meta/errors.rb
meta-api-0.0.8 lib/meta/errors.rb
meta-api-0.0.7 lib/meta/errors.rb
meta-api-0.0.6 lib/meta/errors.rb