UCILoader 1.1.2
Small C++ library that allows user to connect to a chess engines via UCI protocol.
Loading...
Searching...
No Matches
UCILoader::CanNotOpenProcessException Class Reference

Exception thrown when a process cannot be opened or started. More...

#include <ProcessWrapper.h>

Inherits std::exception.

Public Member Functions

 CanNotOpenProcessException (const std::string &reason)
 Constructor for the exception.
 
const char * what () const noexcept override
 Get the exception message explaining the failure.
 

Detailed Description

Exception thrown when a process cannot be opened or started.

This exception is thrown by openProcess() when the requested engine executable cannot be started for any reason (file not found, permission denied, corrupt executable, etc.).

The exception message contains details about why the process failed to open.

Constructor & Destructor Documentation

◆ CanNotOpenProcessException()

UCILoader::CanNotOpenProcessException::CanNotOpenProcessException ( const std::string &  reason)
inline

Constructor for the exception.

Parameters
reasonHuman-readable explanation of why the process failed to open

Member Function Documentation

◆ what()

const char * UCILoader::CanNotOpenProcessException::what ( ) const
inlineoverridenoexcept

Get the exception message explaining the failure.

Returns
C-string describing why the process couldn't be opened

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