📂 golxzn::os::filesystem 📂 1.6.5
golxzn filesystem submodule
Loading...
Searching...
No Matches
golxzn::os::filesystem::error Struct Reference

Struct returned by some methods to tell if there's an error. More...

#include <filesystem.hpp>

Public Member Functions

bool has_error () const noexcept
 Checks if there's an error.
 
 operator bool () const noexcept
 Non-implicit conversion to bool.
 

Public Attributes

std::wstring message
 Error message. If it's golxzn::os::filesystem::none, everything is OK.
 

Detailed Description

Struct returned by some methods to tell if there's an error.

Warning
This struct has unexplicit conversion to bool! Use carefully!

Member Function Documentation

◆ has_error()

bool golxzn::os::filesystem::error::has_error ( ) const
noexcept

Checks if there's an error.

Returns
true - Something wrong (error message is not empty)
false - All right (error message is empty)

◆ operator bool()

golxzn::os::filesystem::error::operator bool ( ) const
noexcept

Non-implicit conversion to bool.

Returns
true - All right. There's no error
false - An error occurred

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