• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
8
9[section:error_type error_type]
10
11[h4 Synopsis]
12
13Type error type represents the different types of errors that can be raised
14by the library when parsing a regular expression.
15
16   namespace boost{ namespace regex_constants{
17
18   typedef implementation-specific-type error_type;
19
20   static const error_type error_collate;
21   static const error_type error_ctype;
22   static const error_type error_escape;
23   static const error_type error_backref;
24   static const error_type error_brack;
25   static const error_type error_paren;
26   static const error_type error_brace;
27   static const error_type error_badbrace;
28   static const error_type error_range;
29   static const error_type error_space;
30   static const error_type error_badrepeat;
31   static const error_type error_complexity;
32   static const error_type error_stack;
33   static const error_type error_bad_pattern;
34
35   } // namespace regex_constants
36   } // namespace boost
37
38
39[h4 Description]
40
41The type `error_type` is an implementation-specific enumeration type that may
42take one of the following values:
43
44[table
45[[Constant][Meaning]]
46[[error_collate][An invalid collating element was specified in a \[\[.name.\]\] block.]]
47[[error_ctype][An invalid character class name was specified in a \[\[:name:\]\] block.]]
48[[error_escape][An invalid or trailing escape was encountered.]]
49[[error_backref][A back-reference to a non-existant marked sub-expression was encountered.]]
50[[error_brack][An invalid character set \[...\] was encountered.]]
51[[error_paren][Mismatched '(' and ')'.]]
52[[error_brace][Mismatched '{' and '}'.]]
53[[error_badbrace][Invalid contents of a {...} block.]]
54[[error_range][A character range was invalid, for example \[d-a\].]]
55[[error_space][Out of memory.]]
56[[error_badrepeat][An attempt to repeat something that can not be repeated - for example a*+]]
57[[error_complexity][The expression became too complex to handle.]]
58[[error_stack][Out of program stack space.]]
59[[error_bad_pattern][Other unspecified errors.]]
60]
61
62[endsect]
63
64