Lines Matching refs:Error
27 class Error;
31 class Error;
32 using ErrorPtr = std::unique_ptr<Error>;
37 class Error {
40 kSuccess = 0, // No error.
70 Error(); // Success by default.
71 explicit Error(Type type); // Uses the default message for |type|.
72 Error(Type type, const std::string& message);
73 ~Error();
83 void CopyFrom(const Error& error);
85 // Sets the Chromeos |error| and returns true if Error represents failure.
86 // Leaves error unchanged, and returns false otherwise.
87 bool ToChromeosError(brillo::ErrorPtr* error) const;
99 // Log an error message from |from_here|. If |error| is non-NULL, also
102 Error* error, Type type,
107 const char* dbus_result; // Error type name.
108 const char* message; // Default Error type message.
117 DISALLOW_COPY_AND_ASSIGN(Error);
123 std::ostream& operator<<(std::ostream& stream, const shill::Error& error);