proxygen
wangle::AcceptorException Class Reference

#include <ServerBootstrap-inl.h>

Inheritance diagram for wangle::AcceptorException:

Public Types

enum  ExceptionType {
  ExceptionType::UNKNOWN = 0, ExceptionType::TIMED_OUT = 1, ExceptionType::DROPPED = 2, ExceptionType::ACCEPT_STOPPED = 3,
  ExceptionType::DRAIN_CONN_PCT = 4, ExceptionType::DROP_CONN_PCT = 5, ExceptionType::FORCE_STOP = 6, ExceptionType::INTERNAL_ERROR = 7
}
 

Public Member Functions

 AcceptorException (ExceptionType type)
 
 AcceptorException (ExceptionType type, const std::string &message)
 
 AcceptorException (ExceptionType type, const std::string &message, double pct)
 
ExceptionType getType () const noexcept
 
double getPct () const noexcept
 

Protected Attributes

const ExceptionType type_
 
const double pct_
 

Detailed Description

Definition at line 32 of file ServerBootstrap-inl.h.

Member Enumeration Documentation

Enumerator
UNKNOWN 
TIMED_OUT 
DROPPED 
ACCEPT_STOPPED 
DRAIN_CONN_PCT 
DROP_CONN_PCT 
FORCE_STOP 
INTERNAL_ERROR 

Definition at line 34 of file ServerBootstrap-inl.h.

34  {
35  UNKNOWN = 0,
36  TIMED_OUT = 1,
37  DROPPED = 2,
38  ACCEPT_STOPPED = 3,
39  DRAIN_CONN_PCT = 4,
40  DROP_CONN_PCT = 5,
41  FORCE_STOP = 6,
42  INTERNAL_ERROR = 7,
43  };
string UNKNOWN
Definition: tokenize.py:53

Constructor & Destructor Documentation

wangle::AcceptorException::AcceptorException ( ExceptionType  type)
inlineexplicit

Definition at line 45 of file ServerBootstrap-inl.h.

45  :
46  std::runtime_error(""), type_(type), pct_(0.0) {}
PskType type
wangle::AcceptorException::AcceptorException ( ExceptionType  type,
const std::string message 
)
inlineexplicit

Definition at line 48 of file ServerBootstrap-inl.h.

48  :
49  std::runtime_error(message), type_(type), pct_(0.0) {}
Definition: test.c:42
PskType type
wangle::AcceptorException::AcceptorException ( ExceptionType  type,
const std::string message,
double  pct 
)
inlineexplicit

Definition at line 51 of file ServerBootstrap-inl.h.

52  :
53  std::runtime_error(message), type_(type), pct_(pct) {}
Definition: test.c:42
PskType type

Member Function Documentation

double wangle::AcceptorException::getPct ( ) const
inlinenoexcept

Definition at line 56 of file ServerBootstrap-inl.h.

References pct_.

56 { return pct_; }
ExceptionType wangle::AcceptorException::getType ( ) const
inlinenoexcept

Definition at line 55 of file ServerBootstrap-inl.h.

References type_.

55 { return type_; }

Member Data Documentation

const double wangle::AcceptorException::pct_
protected

Definition at line 61 of file ServerBootstrap-inl.h.

Referenced by getPct().

const ExceptionType wangle::AcceptorException::type_
protected

Definition at line 59 of file ServerBootstrap-inl.h.

Referenced by getType().


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