/multisketchup/ruby-1.8.0-win32-lib/lib/ruby/1.8/yaml/error.rb

http://multisketchup.googlecode.com/ · Ruby · 33 lines · 18 code · 6 blank · 9 comment · 1 complexity · 49c84dc29e12b99ee2fbd23712567b76 MD5 · raw file

  1. #
  2. # Error messages and exception class
  3. #
  4. module YAML
  5. #
  6. # Error messages
  7. #
  8. ERROR_NO_HEADER_NODE = "With UseHeader=false, the node Array or Hash must have elements"
  9. ERROR_NEED_HEADER = "With UseHeader=false, the node must be an Array or Hash"
  10. ERROR_BAD_EXPLICIT = "Unsupported explicit transfer: '%s'"
  11. ERROR_MANY_EXPLICIT = "More than one explicit transfer"
  12. ERROR_MANY_IMPLICIT = "More than one implicit request"
  13. ERROR_NO_ANCHOR = "No anchor for alias '%s'"
  14. ERROR_BAD_ANCHOR = "Invalid anchor: %s"
  15. ERROR_MANY_ANCHOR = "More than one anchor"
  16. ERROR_ANCHOR_ALIAS = "Can't define both an anchor and an alias"
  17. ERROR_BAD_ALIAS = "Invalid alias: %s"
  18. ERROR_MANY_ALIAS = "More than one alias"
  19. ERROR_ZERO_INDENT = "Can't use zero as an indentation width"
  20. ERROR_UNSUPPORTED_VERSION = "This release of YAML.rb does not support YAML version %s"
  21. ERROR_UNSUPPORTED_ENCODING = "Attempt to use unsupported encoding: %s"
  22. #
  23. # YAML Error classes
  24. #
  25. class Error < StandardError; end
  26. class ParseError < Error; end
  27. end