CoreComponents 3.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches
SystemResourceError Class Reference

System call failed to perform an action on a named resource (e.g. More...

#include <cc/SystemError>

Inheritance diagram for SystemResourceError:

Public Member Functions

 SystemResourceError (int errorCode, const String &resource, const char *source, int line)
 
String resource () const
 Name of affected system resource (e.g.
 
const char * source () const
 File path to the source code which has thrown this exception
 
int line () const
 Line number within the source code.
 
String message () const override
 Error code translated into a human readable error message.
 
- Public Member Functions inherited from SystemError
 SystemError (int errorCode)
 
int errorCode () const
 Error code return by a system call.
 

Additional Inherited Members

- Protected Attributes inherited from SystemError
int errorCode_
 

Detailed Description

System call failed to perform an action on a named resource (e.g.

a file)

See also
CC_SYSTEM_ERROR

Member Function Documentation

◆ resource()

String resource ( ) const

Name of affected system resource (e.g.

file name)

◆ source()

const char * source ( ) const

File path to the source code which has thrown this exception

◆ line()

int line ( ) const

Line number within the source code.

◆ message()

String message ( ) const
overridevirtual

Error code translated into a human readable error message.

Reimplemented from SystemError.