error_type.qbk 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. [/
  2. Copyright 2006-2007 John Maddock.
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt).
  6. ]
  7. [section:error_type error_type]
  8. [h4 Synopsis]
  9. Type error type represents the different types of errors that can be raised
  10. by the library when parsing a regular expression.
  11. namespace boost{ namespace regex_constants{
  12. typedef implementation-specific-type error_type;
  13. static const error_type error_collate;
  14. static const error_type error_ctype;
  15. static const error_type error_escape;
  16. static const error_type error_backref;
  17. static const error_type error_brack;
  18. static const error_type error_paren;
  19. static const error_type error_brace;
  20. static const error_type error_badbrace;
  21. static const error_type error_range;
  22. static const error_type error_space;
  23. static const error_type error_badrepeat;
  24. static const error_type error_complexity;
  25. static const error_type error_stack;
  26. static const error_type error_bad_pattern;
  27. } // namespace regex_constants
  28. } // namespace boost
  29. [h4 Description]
  30. The type `error_type` is an implementation-specific enumeration type that may
  31. take one of the following values:
  32. [table
  33. [[Constant][Meaning]]
  34. [[error_collate][An invalid collating element was specified in a \[\[.name.\]\] block.]]
  35. [[error_ctype][An invalid character class name was specified in a \[\[:name:\]\] block.]]
  36. [[error_escape][An invalid or trailing escape was encountered.]]
  37. [[error_backref][A back-reference to a non-existant marked sub-expression was encountered.]]
  38. [[error_brack][An invalid character set \[...\] was encountered.]]
  39. [[error_paren][Mismatched '(' and ')'.]]
  40. [[error_brace][Mismatched '{' and '}'.]]
  41. [[error_badbrace][Invalid contents of a {...} block.]]
  42. [[error_range][A character range was invalid, for example \[d-a\].]]
  43. [[error_space][Out of memory.]]
  44. [[error_badrepeat][An attempt to repeat something that can not be repeated - for example a*+]]
  45. [[error_complexity][The expression became too complex to handle.]]
  46. [[error_stack][Out of program stack space.]]
  47. [[error_bad_pattern][Other unspecified errors.]]
  48. ]
  49. [endsect]