Sha256: 7635749ce3f20bdf87d232f2876e3f1dc333c1c88bc2540373b14ac6597504cf
Contents?: true
Size: 1.1 KB
Versions: 5
Compression:
Stored size: 1.1 KB
Contents
module Vedeu # ModelNotFound: Raised with Vedeu attempts to access a named model that does # not exist. # # InvalidSyntax: Raised when Vedeu attempts to parse a {Vedeu.view} or # {Vedeu.interface} and encounters a problem. # # MissingRequired: Raised when a name is not provided for a model when # attempting to store it in a repository. # # ModeSwitch: Raised intentionally when the client application wishes to # switch between cooked and raw (or vice versa) terminal modes. Vedeu is # hard-wired to use the `Escape` key to trigger this change for the time # being. # # NotImplemented: Raised to remind me (or client application developers) that # the subclass implements the functionality sought. # # OutOfRange: Raised when trying to access an interface column less than 1 or # greater than 12. Vedeu is hard-wired to a 12-column layout for the time # being. Exceptions = %w[ ModelNotFound InvalidSyntax MissingRequired ModeSwitch NotImplemented OutOfRange ] Exceptions.each { |e| const_set(e, Class.new(StandardError)) } end # Vedeu
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.3.4 | lib/vedeu/exceptions.rb |
vedeu-0.3.3 | lib/vedeu/exceptions.rb |
vedeu-0.3.2 | lib/vedeu/exceptions.rb |
vedeu-0.3.1 | lib/vedeu/exceptions.rb |
vedeu-0.3.0 | lib/vedeu/exceptions.rb |