<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>libstdc++: std::regex_error Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">libstdc++ </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('a06819.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#friends">Friends</a> | <a href="a06816.html">List of all members</a> </div> <div class="headertitle"> <div class="title">std::regex_error Class Reference<div class="ingroups"><a class="el" href="a01496.html">Regular Expressions</a><a class="el" href="a01467.html">Diagnostics</a> » | <a class="el" href="a01489.html">Exceptions</a></div></div> </div> </div><!--header--> <div class="contents"> <div class="dynheader"> Inheritance diagram for std::regex_error:</div> <div class="dyncontent"> <div class="center"><iframe scrolling="no" frameborder="0" src="a06818.svg" width="130" height="183"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe> </div> <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a44d4ab569c3f1f9146b8cb4b1f4897c0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a06819.html#a44d4ab569c3f1f9146b8cb4b1f4897c0">regex_error</a> (<a class="el" href="a01567.html#afe4178e24e6fad9f043d52b9de32e488">regex_constants::error_type</a> __ecode)</td></tr> <tr class="separator:a44d4ab569c3f1f9146b8cb4b1f4897c0"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3fa7937e28854ac53d3e7b51e1cca6a3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a01567.html#afe4178e24e6fad9f043d52b9de32e488">regex_constants::error_type</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a06819.html#a3fa7937e28854ac53d3e7b51e1cca6a3">code</a> () const</td></tr> <tr class="separator:a3fa7937e28854ac53d3e7b51e1cca6a3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a261a33056182b4b5f047e7061d716380"><td class="memItemLeft" align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="a02807.html#a261a33056182b4b5f047e7061d716380">what</a> () const _GLIBCXX_TXN_SAFE_DYN noexcept</td></tr> <tr class="separator:a261a33056182b4b5f047e7061d716380"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a> Friends</h2></td></tr> <tr class="memitem:aa6bdf9b1a3881085e6f02b8281c666a9"><td class="memItemLeft" align="right" valign="top"><a id="aa6bdf9b1a3881085e6f02b8281c666a9"></a> void </td><td class="memItemRight" valign="bottom"><b>__throw_regex_error</b> (<a class="el" href="a01567.html#afe4178e24e6fad9f043d52b9de32e488">regex_constants::error_type</a>, const char *)</td></tr> <tr class="separator:aa6bdf9b1a3881085e6f02b8281c666a9"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>A regular expression exception class.</p> <p>The regular expression library throws objects of this class on error. </p> <p class="definition">Definition at line <a class="el" href="a00485_source.html#l00132">132</a> of file <a class="el" href="a00485_source.html">regex_error.h</a>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a id="a44d4ab569c3f1f9146b8cb4b1f4897c0"></a> <h2 class="memtitle"><span class="permalink"><a href="#a44d4ab569c3f1f9146b8cb4b1f4897c0">◆ </a></span>regex_error()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">std::regex_error::regex_error </td> <td>(</td> <td class="paramtype"><a class="el" href="a01567.html#afe4178e24e6fad9f043d52b9de32e488">regex_constants::error_type</a> </td> <td class="paramname"><em>__ecode</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">explicit</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Constructs a regex_error object. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">__ecode</td><td>the regex error code. </td></tr> </table> </dd> </dl> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a id="a3fa7937e28854ac53d3e7b51e1cca6a3"></a> <h2 class="memtitle"><span class="permalink"><a href="#a3fa7937e28854ac53d3e7b51e1cca6a3">◆ </a></span>code()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a01567.html#afe4178e24e6fad9f043d52b9de32e488">regex_constants::error_type</a> std::regex_error::code </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Gets the regex error code. </p> <dl class="section return"><dt>Returns</dt><dd>the regex error code. </dd></dl> <p class="definition">Definition at line <a class="el" href="a00485_source.html#l00153">153</a> of file <a class="el" href="a00485_source.html">regex_error.h</a>.</p> </div> </div> <a id="a261a33056182b4b5f047e7061d716380"></a> <h2 class="memtitle"><span class="permalink"><a href="#a261a33056182b4b5f047e7061d716380">◆ </a></span>what()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual const char* std::runtime_error::what </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">noexcept</span><span class="mlabel">inherited</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor). </p> <p>Reimplemented from <a class="el" href="a01489.html#gab115ebeb6ac845ab4f4336617ad33165">std::exception</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="a00485_source.html">regex_error.h</a></li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="a01541.html">std</a></li><li class="navelem"><a class="el" href="a06819.html">regex_error</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li> </ul> </div> </body> </html>