diff options
Diffstat (limited to 'chromium/ui/gfx/x/error.h')
-rw-r--r-- | chromium/ui/gfx/x/error.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/chromium/ui/gfx/x/error.h b/chromium/ui/gfx/x/error.h new file mode 100644 index 00000000000..a9de90bfab5 --- /dev/null +++ b/chromium/ui/gfx/x/error.h @@ -0,0 +1,26 @@ +// Copyright 2020 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef UI_GFX_X_ERROR_H_ +#define UI_GFX_X_ERROR_H_ + +#include <string> + +#include "base/component_export.h" + +namespace x11 { + +// This class is a generic interface for X11 errors. Currently the only +// functionality is printing the error as a human-readable string. +class COMPONENT_EXPORT(X11) Error { + public: + Error(); + virtual ~Error(); + + virtual std::string ToString() const = 0; +}; + +} // namespace x11 + +#endif // UI_GFX_X_ERROR_H_ |