proxygen
folly::SubprocessSpawnError Class Reference

#include <Subprocess.h>

Inheritance diagram for folly::SubprocessSpawnError:
folly::SubprocessError

Public Member Functions

 SubprocessSpawnError (const char *executable, int errCode, int errnoValue)
 
 ~SubprocessSpawnError () override=default throw ()
 
int errnoValue () const
 

Private Attributes

int errnoValue_
 

Detailed Description

Exception thrown if the subprocess cannot be started.

Definition at line 254 of file Subprocess.h.

Constructor & Destructor Documentation

folly::SubprocessSpawnError::SubprocessSpawnError ( const char *  executable,
int  errCode,
int  errnoValue 
)

Definition at line 142 of file Subprocess.cpp.

References folly::ProcessReturnCode::EXITED, folly::ProcessReturnCode::exitStatus(), i, returnCode(), s, and folly::ProcessReturnCode::state().

Referenced by folly::Subprocess::readChildErrorPipe().

146  : SubprocessError(
static std::string toSubprocessSpawnErrorMessage(char const *executable, int errCode, int errnoValue)
Definition: Subprocess.cpp:133
int errCode
Definition: Subprocess.cpp:224
folly::SubprocessSpawnError::~SubprocessSpawnError ( )
throw (
)
overridedefault

Member Function Documentation

int folly::SubprocessSpawnError::errnoValue ( ) const
inline

Definition at line 258 of file Subprocess.h.

Referenced by folly::Subprocess::spawnInternal(), and TEST().

258  {
259  return errnoValue_;
260  }

Member Data Documentation

int folly::SubprocessSpawnError::errnoValue_
private

Definition at line 263 of file Subprocess.h.


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