Lines Matching refs:Error
5 #include <weave/error.h>
16 // Use logging::LogMessage() directly instead of LOG(ERROR) to substitute
17 // the current error location with the location passed in to the Error object.
18 // This way the log will contain the actual location of the error, and not
19 // as if it always comes from chromeos/errors/error.cc(22).
28 ErrorPtr Error::Create(const tracked_objects::Location& location,
34 ErrorPtr Error::Create(const tracked_objects::Location& location,
39 return ErrorPtr(new Error(location, code, message, std::move(inner_error)));
42 Error::AddToTypeProxy Error::AddTo(ErrorPtr* error,
46 if (error) {
47 *error = Create(location, code, message, std::move(*error));
49 // Create already logs the error, but if |error| is nullptr,
50 // we still want to log the error...
56 Error::AddToTypeProxy Error::AddToPrintf(
57 ErrorPtr* error,
66 AddTo(error, location, code, message);
70 ErrorPtr Error::Clone() const {
73 new Error(location_, code_, message_, std::move(inner_error)));
76 bool Error::HasError(const std::string& code) const {
80 const Error* Error::GetFirstError() const {
81 const Error* err = this;
87 Error::Error(const tracked_objects::Location& location,
91 : Error{tracked_objects::LocationSnapshot{location}, code, message,
94 Error::Error(const tracked_objects::LocationSnapshot& location,
103 const Error* Error::FindError(const Error* error_chain_start,