1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef UI_GFX_X_ERROR_H_
6 #define UI_GFX_X_ERROR_H_
7 
8 #include <string>
9 
10 #include "base/component_export.h"
11 
12 namespace x11 {
13 
14 // This class is a generic interface for X11 errors.  Currently the only
15 // functionality is printing the error as a human-readable string.
COMPONENT_EXPORT(X11)16 class COMPONENT_EXPORT(X11) Error {
17  public:
18   Error();
19   virtual ~Error();
20 
21   virtual std::string ToString() const = 0;
22 };
23 
24 }  // namespace x11
25 
26 #endif  // UI_GFX_X_ERROR_H_
27