libfilezilla
Public Types | Public Member Functions | Public Attributes | List of all members
result Class Reference

Small class to return filesystem errors. More...

#include <fsresult.hpp>

Public Types

enum  error {
  ok , none = ok , invalid , noperm ,
  nofile , nodir , nospace , other
}
 
typedef uint32_t raw_t
 

Public Member Functions

 operator bool () const
 

Public Attributes

error error_ {}
 
raw_t raw_ {}
 

Detailed Description

Small class to return filesystem errors.

Note that now all system errors are recognized in all situations, "other" is always a possible error value even if another category would fit better.

The raw error code isn't always available. If available, it is the value of errno/GetLastError() when the failure occurred.

Member Enumeration Documentation

◆ error

enum error
Enumerator
invalid 

Invalid arguments, syntax error.

noperm 

Permission denied.

nofile 

Requested file does not exist or is not a file.

nodir 

Requested dir does not exist or is not a dir.

nospace 

Out of disk space.

other 

Some other error.


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