Sha256: bdd1a311a89eb191dff311bf6ed13d6db0488d9850a2c2506b1bd7f8549e76d7

Contents?: true

Size: 627 Bytes

Versions: 6

Compression:

Stored size: 627 Bytes

Contents

module Pione
  module PNML
    # `AmbiguousNetQueryResult` is an exception that raised when reuslt of net
    # query is ambigous unexpectedly.
    class AmbiguousNetQueryResult < StandardError
      # @param name [String]
      #   net query method name
      # @param query [Object]
      #   the query
      # @param result [Object]
      #   the result
      def initialize(name, query, result)
        @name = name
        @query = query
        @result = result
      end

      def message
        "The result of net query(%s, %s) is ambiguous: %s" % [@name, @query.inspect, @result.inspect]
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pione-0.5.0 lib/pione/pnml/pnml-exception.rb
pione-0.5.0.alpha.2 lib/pione/pnml/pnml-exception.rb
pione-0.5.0.alpha.1 lib/pione/pnml/pnml-exception.rb
pione-0.4.2 lib/pione/pnml/pnml-exception.rb
pione-0.4.1 lib/pione/pnml/pnml-exception.rb
pione-0.4.0 lib/pione/pnml/pnml-exception.rb