Common/Util/ErrorIds.h

Go to the documentation of this file.
00001 //{{NO_DEPENDENCIES}}
00002 // This file does NOT trigger a recompile. Do not delete error
00003 // ids unless you absolutely know what you are doing.
00004 
00005 //-------------------------------------------------------------------
00008 //  Copyright (c) 2007 Celeritive Technologies, Inc.
00009 //
00010 // This library is free software; you can redistribute it and/or
00011 // modify it under the terms of the GNU Lesser General Public
00012 // License as published by the Free Software Foundation; either
00013 // version 2.1 of the License, or (at your option) any later version.
00014 //
00015 // This library is distributed in the hope that it will be useful,
00016 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00018 // Lesser General Public License for more details.
00019 //
00020 // You should have received a copy of the GNU Lesser General Public
00021 // License along with this library; if not, write to the Free Software
00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00023 //
00024 //-------------------------------------------------------------------
00025 
00026 #pragma once
00027 #ifndef VOLUMILL_ERRORIDS_H
00028 #define VOLUMILL_ERRORIDS_H
00029 
00030 namespace util
00031 {
00033    struct Error
00034    {
00035       Error (int id) : m_id (id) {}
00036       int m_id;
00037    };
00038 
00039    const int ERROR_AUTHENTICATION_FAILED = -1000;
00040    const int ERROR_CONNECTION_FAILED = -1001;
00041    const int ERROR_NOT_ONE_REGION = -1002;
00042    const int ERROR_NO_PUBLIC_KEY = -1003;
00043    const int ERROR_NO_SUCH_JOB = -1004;
00044    const int ERROR_CANT_GET_SERVERS = -1005;
00045    const int ERROR_TOOLPATH_RECORDS_CORRUPTED = -1006;
00046    const int ERROR_VOLUMILL_INTERNAL_ERROR = -1007;
00047    const int ERROR_USER_CANCELLED = -1008;
00048    const int ERROR_CLIENT_OUT_OF_DATE = -1009;
00049    const int ERROR_OPEN_POCKETS_NOT_ALLOWED = -1010;
00050    const int ERROR_TRIAL_EXPIRED = -1011;
00051 
00052    const std::string& getErrorMessage (int errorId);
00053 }
00054 
00055 #endif

Generated on Tue Jan 29 21:37:56 2008 for VoluMill Universal Client by  doxygen 1.4.6