PageRenderTime 41ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/Util/IronRuby/lib/ruby/1.8/yaml/error.rb

http://github.com/IronLanguages/main
Ruby | 34 lines | 19 code | 6 blank | 9 comment | 1 complexity | 783f0afec025578224c550aaf96e3646 MD5 | raw file
Possible License(s): CPL-1.0, BSD-3-Clause, ISC, GPL-2.0, MPL-2.0-no-copyleft-exception
  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. class TypeError < StandardError; end
  28. end