blob: 5af769421b1cbc0e0e52dd91d05c42f6a20414a6 [file] [log] [blame]
Eric Shienbrood5de44ab2011-12-05 10:46:27 -05001// Copyright (c) 2012 The Chromium OS 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
Ben Chanc45688b2014-07-02 23:50:45 -07005#ifndef SHILL_CELLULAR_ERROR_H_
6#define SHILL_CELLULAR_ERROR_H_
Eric Shienbrood5de44ab2011-12-05 10:46:27 -05007
8#include <dbus-c++/error.h>
9
10#include "shill/error.h"
11
12namespace shill {
13
14class CellularError {
15 public:
16 static void FromDBusError(const DBus::Error &dbus_error, Error *error);
17
Arman Uguray763df862013-07-02 12:49:10 -070018 static void FromMM1DBusError(const DBus::Error &dbus_error, Error *error);
19
Eric Shienbrood5de44ab2011-12-05 10:46:27 -050020 private:
21 DISALLOW_COPY_AND_ASSIGN(CellularError);
22};
23
24} // namespace shill
25
Ben Chanc45688b2014-07-02 23:50:45 -070026#endif // SHILL_CELLULAR_ERROR_H_