/* $Id: error.hg,v 1.6 2004/04/04 20:40:00 murrayc Exp $ */ // -*- C++ -*- // this is for the .hg, I realize gensig puts one in /* error.h * * Copyright 2003 libgdamm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include _DEFS(libgdamm,libgda) _PINCLUDE(glibmm/private/object_p.h) namespace Gnome { namespace Gda { class Error : public Glib::Object { _CLASS_GOBJECT(Error, GdaError, GDA_ERROR, Glib::Object, GObject) _IGNORE(gda_error_free) protected: _CTOR_DEFAULT public: _WRAP_CREATE() _WRAP_METHOD(Glib::ustring get_description() const, gda_error_get_description) _WRAP_METHOD(void set_description(const Glib::ustring& description), gda_error_set_description) _WRAP_METHOD(glong get_number() const, gda_error_get_number) _WRAP_METHOD(void set_number(glong number), gda_error_set_number) _WRAP_METHOD(Glib::ustring get_source() const, gda_error_get_source) _WRAP_METHOD(void set_source(const Glib::ustring& source), gda_error_set_source) _WRAP_METHOD(Glib::ustring get_sqlstate() const, gda_error_get_sqlstate) _WRAP_METHOD(void set_sqlstate(const Glib::ustring& sqlstate), gda_error_set_sqlstate) }; } // namespace Gda } // namespace Gnome