Home | History | Annotate | Download | only in errors

Lines Matching refs:Error

5 #include <brillo/errors/error.h>
10 using brillo::Error;
18 // Use logging::LogMessage() directly instead of LOG(ERROR) to substitute
19 // the current error location with the location passed in to the Error object.
20 // This way the log will contain the actual location of the error, and not
21 // as if it always comes from brillo/errors/error.cc(22).
29 ErrorPtr Error::Create(const tracked_objects::Location& location,
36 ErrorPtr Error::Create(const tracked_objects::Location& location,
43 new Error(location, domain, code, message, std::move(inner_error)));
46 void Error::AddTo(ErrorPtr* error,
51 if (error) {
52 *error = Create(location, domain, code, message, std::move(*error));
54 // Create already logs the error, but if |error| is nullptr,
55 // we still want to log the error...
60 void Error::AddToPrintf(ErrorPtr* error,
70 AddTo(error, location, domain, code, message);
73 ErrorPtr Error::Clone() const {
76 new Error(location_, domain_, code_, message_, std::move(inner_error)));
79 bool Error::HasDomain(const std::string& domain) const {
83 bool Error::HasError(const std::string& domain, const std::string& code) const {
87 const Error* Error::GetFirstError() const {
88 const Error* err = this;
94 Error::Error(const tracked_objects::Location& location,
99 : Error{tracked_objects::LocationSnapshot{location},
106 Error::Error(const tracked_objects::LocationSnapshot& location,
118 const Error* Error::FindErrorOfDomain(const Error* error_chain_start,
128 const Error* Error::FindError(const Error* error_chain_start,