in quic/QuicException.cpp [64:131]
folly::StringPiece toString(LocalErrorCode code) {
switch (code) {
case LocalErrorCode::NO_ERROR:
return "No Error";
case LocalErrorCode::CONNECT_FAILED:
return "Connect failed";
case LocalErrorCode::CODEC_ERROR:
return "Codec Error";
case LocalErrorCode::STREAM_CLOSED:
return "Stream is closed";
case LocalErrorCode::STREAM_NOT_EXISTS:
return "Stream does not exist";
case LocalErrorCode::CREATING_EXISTING_STREAM:
return "Creating an existing stream";
case LocalErrorCode::SHUTTING_DOWN:
return "Shutting down";
case LocalErrorCode::RESET_CRYPTO_STREAM:
return "Reset the crypto stream";
case LocalErrorCode::CWND_OVERFLOW:
return "CWND overflow";
case LocalErrorCode::INFLIGHT_BYTES_OVERFLOW:
return "Inflight bytes overflow";
case LocalErrorCode::LOST_BYTES_OVERFLOW:
return "Lost bytes overflow";
case LocalErrorCode::NEW_VERSION_NEGOTIATED:
return "New version negotiatied";
case LocalErrorCode::INVALID_WRITE_CALLBACK:
return "Invalid write callback";
case LocalErrorCode::CALLBACK_ALREADY_INSTALLED:
return "Callback already installed";
case LocalErrorCode::TLS_HANDSHAKE_FAILED:
return "TLS handshake failed";
case LocalErrorCode::APP_ERROR:
return "App error";
case LocalErrorCode::INTERNAL_ERROR:
return "Internal error";
case LocalErrorCode::TRANSPORT_ERROR:
return "Transport error";
case LocalErrorCode::INVALID_WRITE_DATA:
return "Invalid write data";
case LocalErrorCode::INVALID_STATE_TRANSITION:
return "Invalid state transition";
case LocalErrorCode::CONNECTION_CLOSED:
return "Connection closed";
case LocalErrorCode::EARLY_DATA_REJECTED:
return "Early data rejected";
case LocalErrorCode::CONNECTION_RESET:
return "Connection reset";
case LocalErrorCode::IDLE_TIMEOUT:
return "Idle timeout";
case LocalErrorCode::PACKET_NUMBER_ENCODING:
return "Packet number encoding";
case LocalErrorCode::INVALID_OPERATION:
return "Invalid operation";
case LocalErrorCode::STREAM_LIMIT_EXCEEDED:
return "Stream limit exceeded";
case LocalErrorCode::CONNECTION_ABANDONED:
return "Connection abandoned";
case LocalErrorCode::KNOB_FRAME_UNSUPPORTED:
return "Knob Frame Not Supported";
case LocalErrorCode::PACER_NOT_AVAILABLE:
return "Pacer not available";
default:
break;
}
LOG(WARNING) << "toString has unhandled ErrorCode";
return "Unknown error";
}