REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
Loading...
Searching...
No Matches
real::dfa_error Class Reference

Thrown when a pattern cannot be represented as a DFA. More...

#include <dfa.hpp>

Inheritance diagram for real::dfa_error:
[legend]
Collaboration diagram for real::dfa_error:
[legend]

Public Member Functions

 dfa_error (const std::string &message)
 Builds the error.
 

Detailed Description

Thrown when a pattern cannot be represented as a DFA.

The cause is always a zero-width assertion other than a leading \A/^ (e.g. $, \b, \B, multiline anchors). real::dfa never falls back silently — a violated contract is an error the caller handles (e.g. by keeping that rule on the Pike VM).

Definition at line 57 of file dfa.hpp.

Constructor & Destructor Documentation

◆ dfa_error()

real::dfa_error::dfa_error ( const std::string &  message)
inlineexplicit

Builds the error.

Parameters
[in]messageHuman-readable cause.

Definition at line 65 of file dfa.hpp.


The documentation for this class was generated from the following file: