cpp-terminal 1.0.0
Small C++ library for writing multiplatform terminal applications
Loading...
Searching...
No Matches
Term::Private::WindowsError Class Reference

#include <cpp-terminal/private/exception.hpp>

Public Member Functions

 WindowsError (const WindowsError &)=default
 
 WindowsError (WindowsError &&)=default
 
 WindowsError () noexcept=default
 
virtual ~WindowsError () noexcept=default
 
WindowsErroroperator= (WindowsError &&) noexcept=default
 
WindowsErroroperator= (const WindowsError &) noexcept=default
 
std::int64_t error () const noexcept
 
bool check_value () const noexcept
 
WindowsErrorcheck_if (const bool &ret) noexcept
 
void throw_exception (const std::string &str=std::string()) const
 

Private Attributes

std::int64_t m_error {0}
 
bool m_check_value {false}
 

Detailed Description

Definition at line 24 of file exception.hpp.

Constructor & Destructor Documentation

◆ WindowsError() [1/3]

Term::Private::WindowsError::WindowsError ( const WindowsError & )
default

◆ WindowsError() [2/3]

Term::Private::WindowsError::WindowsError ( WindowsError && )
default

◆ WindowsError() [3/3]

Term::Private::WindowsError::WindowsError ( )
defaultnoexcept

◆ ~WindowsError()

virtual Term::Private::WindowsError::~WindowsError ( )
virtualdefaultnoexcept

Member Function Documentation

◆ check_if()

Term::Private::WindowsError & Term::Private::WindowsError::check_if ( const bool & ret)
noexcept

Definition at line 75 of file exception.cpp.

76{
77 m_error = static_cast<std::int64_t>(GetLastError());
78 m_check_value = ret;
79 return *this;
80}

◆ check_value()

bool Term::Private::WindowsError::check_value ( ) const
noexcept

Definition at line 73 of file exception.cpp.

73{ return m_check_value; }

◆ error()

std::int64_t Term::Private::WindowsError::error ( ) const
noexcept

Definition at line 71 of file exception.cpp.

71{ return m_error; }

◆ operator=() [1/2]

WindowsError & Term::Private::WindowsError::operator= ( const WindowsError & )
defaultnoexcept

◆ operator=() [2/2]

WindowsError & Term::Private::WindowsError::operator= ( WindowsError && )
defaultnoexcept

◆ throw_exception()

void Term::Private::WindowsError::throw_exception ( const std::string & str = std::string()) const

Definition at line 82 of file exception.cpp.

Member Data Documentation

◆ m_check_value

bool Term::Private::WindowsError::m_check_value {false}
private

Definition at line 40 of file exception.hpp.

40{false};

◆ m_error

std::int64_t Term::Private::WindowsError::m_error {0}
private

Definition at line 39 of file exception.hpp.

39{0};

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