OLD | NEW |
1 /* | 1 /* |
2 * | 2 * |
3 * D-Bus++ - C++ bindings for D-Bus | 3 * D-Bus++ - C++ bindings for D-Bus |
4 * | 4 * |
5 * Copyright (C) 2005-2007 Paolo Durante <shackan@gmail.com> | 5 * Copyright (C) 2005-2007 Paolo Durante <shackan@gmail.com> |
6 * | 6 * |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 return _int->error.message; | 72 return _int->error.message; |
73 } | 73 } |
74 | 74 |
75 bool Error::is_set() const | 75 bool Error::is_set() const |
76 { | 76 { |
77 return *(_int); | 77 return *(_int); |
78 } | 78 } |
79 | 79 |
80 void Error::set(const char *name, const char *message) | 80 void Error::set(const char *name, const char *message) |
81 { | 81 { |
82 » dbus_set_error_const(&(_int->error), name, message); | 82 » dbus_set_error(&(_int->error), name, message); |
83 } | 83 } |
84 | 84 |
85 const char *Error::what() const throw() | 85 const char *Error::what() const throw() |
86 { | 86 { |
87 return _int->error.message; | 87 return _int->error.message; |
88 } | 88 } |
89 | |
OLD | NEW |