summaryrefslogtreecommitdiff
path: root/chromium/ui/gfx/x/error.h
blob: a9de90bfab55acd38732714aa27a66609afe1e17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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_