PCRE2 C++ Wrapper 1.3.0
pcre2cpp
Loading...
Searching...
No Matches
pcre2cpp::basic_pcre2cpp_exception< utf > Class Template Reference

base pcre2cpp exception class More...

#include <exceptions.hpp>

Inheritance diagram for pcre2cpp::basic_pcre2cpp_exception< utf >:
[legend]
Collaboration diagram for pcre2cpp::basic_pcre2cpp_exception< utf >:
[legend]

Public Member Functions

 basic_pcre2cpp_exception (const _string_view_type message) noexcept
 constructor with message
 basic_pcre2cpp_exception (const int error_code) noexcept
 constructor with error code
 basic_pcre2cpp_exception (const int error_code, const size_t error_offset) noexcept
 constructor with error code and error offset
_PCRE2CPP_CONSTEXPR17 const _string_typeget_error () const noexcept
 returns error message

Private Types

using _pcre2_data_t = utils::pcre2_data<utf>
using _string_type = typename _pcre2_data_t::string_type
using _string_view_type = typename _pcre2_data_t::string_view_type
using _uchar_type = typename _pcre2_data_t::uchar_type
using _char_type = typename _pcre2_data_t::string_char_type

Private Attributes

_string_type _message
 error message

Detailed Description

template<utf_type utf>
class pcre2cpp::basic_pcre2cpp_exception< utf >

base pcre2cpp exception class

Template Parameters
utfUTF type

Member Typedef Documentation

◆ _char_type

template<utf_type utf>
using pcre2cpp::basic_pcre2cpp_exception< utf >::_char_type = typename _pcre2_data_t::string_char_type
private

◆ _pcre2_data_t

template<utf_type utf>
using pcre2cpp::basic_pcre2cpp_exception< utf >::_pcre2_data_t = utils::pcre2_data<utf>
private

◆ _string_type

template<utf_type utf>
using pcre2cpp::basic_pcre2cpp_exception< utf >::_string_type = typename _pcre2_data_t::string_type
private

◆ _string_view_type

template<utf_type utf>
using pcre2cpp::basic_pcre2cpp_exception< utf >::_string_view_type = typename _pcre2_data_t::string_view_type
private

◆ _uchar_type

template<utf_type utf>
using pcre2cpp::basic_pcre2cpp_exception< utf >::_uchar_type = typename _pcre2_data_t::uchar_type
private

Constructor & Destructor Documentation

◆ basic_pcre2cpp_exception() [1/3]

template<utf_type utf>
pcre2cpp::basic_pcre2cpp_exception< utf >::basic_pcre2cpp_exception ( const _string_view_type message)
inlineexplicitnoexcept

constructor with message

◆ basic_pcre2cpp_exception() [2/3]

template<utf_type utf>
pcre2cpp::basic_pcre2cpp_exception< utf >::basic_pcre2cpp_exception ( const int error_code)
inlineexplicitnoexcept

constructor with error code

◆ basic_pcre2cpp_exception() [3/3]

template<utf_type utf>
pcre2cpp::basic_pcre2cpp_exception< utf >::basic_pcre2cpp_exception ( const int error_code,
const size_t error_offset )
inlinenoexcept

constructor with error code and error offset

Member Function Documentation

◆ get_error()

template<utf_type utf>
_PCRE2CPP_CONSTEXPR17 const _string_type & pcre2cpp::basic_pcre2cpp_exception< utf >::get_error ( ) const
inlinenoexcept

returns error message

Member Data Documentation

◆ _message

template<utf_type utf>
_string_type pcre2cpp::basic_pcre2cpp_exception< utf >::_message
private

error message