Lines Matching refs:code
26 string ErrorCodeToString(ErrorCode code) {
27 // If the given code has both parts (i.e. the error code part and the flags
29 // has case statements only for the base error code or a single flag but
31 if ((static_cast<int>(code) & static_cast<int>(ErrorCode::kSpecialFlags)) &&
32 (static_cast<int>(code) & ~static_cast<int>(ErrorCode::kSpecialFlags)))
33 code = static_cast<ErrorCode>(
34 static_cast<int>(code) & ~static_cast<int>(ErrorCode::kSpecialFlags));
35 switch (code) {
151 return "Unknown error: " + base::UintToString(static_cast<unsigned>(code));