libfilezilla
Loading...
Searching...
No Matches
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 , resource_limit ,
  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 (physical, or space quota)

resource_limit 

Dynamic resource utilization, like too many open files.

other 

Some other error.


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