Sha256: fb542067d5d49fe4a160a2dc623e5ae7b978a7cdbe29c9cd5f1f1921970b88af

Contents?: true

Size: 1.66 KB

Versions: 7

Compression:

Stored size: 1.66 KB

Contents

module Vedeu

  # Raised when Vedeu attempts to access a named buffer that does not exist.
  BufferNotFound = Class.new(StandardError)

  # Raised when trying to access a group of interfaces which do not exist by
  # this name.
  GroupNotFound = Class.new(StandardError)

  # Raised when an interface cannot be found by name.
  InterfaceNotFound = Class.new(StandardError)

  # Raised when Vedeu attempts to parse a {Vedeu.view} or {Vedeu.interface} and
  # encounters a problem.
  InvalidSyntax = Class.new(StandardError)

  # Raised when attempting to assign a key which is already in use.
  KeyInUse = Class.new(StandardError)

  # Raised when a menu cannot be found by name.
  MenuNotFound = Class.new(StandardError)

  # Raised when the attributes argument to {Vedeu::Registrar} does not contain
  # a required key or the value to that key is nil or empty.
  MissingRequired = Class.new(StandardError)

  # 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.
  ModeSwitch = Class.new(StandardError)

  # Raised when attempting to reach the currently in focus interface, when no
  # interfaces have been defined yet.
  NoInterfacesDefined = Class.new(StandardError)

  # Raised to remind me (or client application developers) that the subclass
  # implements the functionality sought.
  NotImplemented = Class.new(StandardError)

  # 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.
  OutOfRange = Class.new(StandardError)

end # Vedeu

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vedeu-0.2.10 lib/vedeu/support/exceptions.rb
vedeu-0.2.9 lib/vedeu/support/exceptions.rb
vedeu-0.2.8 lib/vedeu/support/exceptions.rb
vedeu-0.2.7 lib/vedeu/support/exceptions.rb
vedeu-0.2.6 lib/vedeu/support/exceptions.rb
vedeu-0.2.5 lib/vedeu/support/exceptions.rb
vedeu-0.2.4 lib/vedeu/support/exceptions.rb