lib/antelope/ace/errors.rb in antelope-0.0.1 vs lib/antelope/ace/errors.rb in antelope-0.1.0
- old
+ new
@@ -2,11 +2,11 @@
module Ace
# Defines an error that can occur within the Ace module. All
# errors that are raised within the Ace module are subclasses of
# this.
- class Error < StandardError
+ class Error < Antelope::Error
end
# Used primarily in the {Scanner}, this is raised when an input
# is malformed. The message should contain a snippet of the input
# which caused the error.
@@ -17,11 +17,17 @@
# token (a nonterminal or a terminal) that was not previously
# defined, this is raised.
class UndefinedTokenError < Error
end
- # Pimarily used in the {Compiler}, if a scanner token appears that
- # should not be in the current state, this is raised.
+ # Primarily used in the {Compiler}, if a scanner token appears
+ # that should not be in the current state, this is raised.
class InvalidStateError < Error
+ end
+
+ # Primarily used in the {Grammar} (specifically
+ # {Grammar::Generation}), if the grammar could not determine the
+ # generator to use for the generation, it raises this.
+ class NoTypeError < Error
end
end
end