Eric Shienbrood | 5de44ab | 2011-12-05 10:46:27 -0500 | [diff] [blame] | 1 | // 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 Chan | c45688b | 2014-07-02 23:50:45 -0700 | [diff] [blame] | 5 | #ifndef SHILL_CELLULAR_ERROR_H_ |
| 6 | #define SHILL_CELLULAR_ERROR_H_ |
Eric Shienbrood | 5de44ab | 2011-12-05 10:46:27 -0500 | [diff] [blame] | 7 | |
| 8 | #include <dbus-c++/error.h> |
| 9 | |
| 10 | #include "shill/error.h" |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class CellularError { |
| 15 | public: |
| 16 | static void FromDBusError(const DBus::Error &dbus_error, Error *error); |
| 17 | |
Arman Uguray | 763df86 | 2013-07-02 12:49:10 -0700 | [diff] [blame] | 18 | static void FromMM1DBusError(const DBus::Error &dbus_error, Error *error); |
| 19 | |
Eric Shienbrood | 5de44ab | 2011-12-05 10:46:27 -0500 | [diff] [blame] | 20 | private: |
| 21 | DISALLOW_COPY_AND_ASSIGN(CellularError); |
| 22 | }; |
| 23 | |
| 24 | } // namespace shill |
| 25 | |
Ben Chan | c45688b | 2014-07-02 23:50:45 -0700 | [diff] [blame] | 26 | #endif // SHILL_CELLULAR_ERROR_H_ |