Sha256: 427c57a38bcda5eae3ff5613b9f268bf60e739cfd04ff481976015b056d7eb39

Contents?: true

Size: 834 Bytes

Versions: 38

Compression:

Stored size: 834 Bytes

Contents

module GraphitiGql
  module Errors
    class Base < StandardError;end

    class UnsupportedStats < Base
      def message
        "You're requesting stats for multiple parent nodes. Currently, we only support this when there is a single parent node, or when using the ActiveRecord adapter."
      end
    end

    class UnauthorizedField < Base
      def initialize(field)
        @field = field
      end

      def message
        "You are not authorized to read field #{@field}"
      end
    end

    class NullFilter < Base
      def initialize(name)
        @name = name
      end

      def message
        "Filter '#{@name}' does not support null"
      end
    end

    class UnsupportedLast < Base
      def message
        "We do not currently support combining 'last' with 'before' or 'after'"
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
graphiti_gql-0.2.38 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.37 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.36 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.35 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.34 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.33 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.32 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.31 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.30 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.29 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.28 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.27 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.26 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.25 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.24 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.23 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.22 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.21 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.20 lib/graphiti_gql/errors.rb
graphiti_gql-0.2.19 lib/graphiti_gql/errors.rb