00001 #ifndef _LIBGNOMEVFSMM_EXCEPTION_H 00002 #define _LIBGNOMEVFSMM_EXCEPTION_H 00003 00004 #include <glibmm.h> 00005 00006 /* Copyright 2003 gnome-vfsmm Development Team 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Library General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2 of the License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Library General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Library General Public 00019 * License along with this library; if not, write to the Free 00020 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00021 */ 00022 00023 #include <glibmm/exception.h> 00024 #include <libgnomevfsmm/enums.h> 00025 #include <libgnomevfs/gnome-vfs-ops.h> 00026 00027 namespace Gnome 00028 { 00029 00030 namespace Vfs 00031 { 00032 00033 class exception : public Glib::Exception 00034 { 00035 public: 00036 exception(); 00037 explicit exception(Gnome::Vfs::Result result); 00038 virtual ~exception() throw(); 00039 00040 virtual Glib::ustring what() const; 00041 00042 protected: 00043 Gnome::Vfs::Result gobj_; 00044 }; 00045 00046 } // namespace Vfs 00047 } // namespace Gnome 00048 00049 #endif /* _LIBGNOMEVFSMM_URI_H */ 00050