]> rtime.felk.cvut.cz Git - frescor/frsh.git/blobdiff - fres/contract/fres_error.h
Start of transaction implementation and tests
[frescor/frsh.git] / fres / contract / fres_error.h
index e128042671033935cf36d494d581989833d866a7..9c7b23470ffdaa52280d272dc732c7a3e7f1f86b 100644 (file)
+/**************************************************************************/
+/* ---------------------------------------------------------------------- */
+/* Copyright (C) 2006 - 2008 FRESCOR consortium partners:                */
+/*                                                                       */
+/*   Universidad de Cantabria,              SPAIN                        */
+/*   University of York,                    UK                           */
+/*   Scuola Superiore Sant'Anna,            ITALY                        */
+/*   Kaiserslautern University,             GERMANY                      */
+/*   Univ. Politécnica  Valencia,           SPAIN                       */
+/*   Czech Technical University in Prague,  CZECH REPUBLIC               */
+/*   ENEA                                   SWEDEN                       */
+/*   Thales Communication S.A.              FRANCE                       */
+/*   Visual Tools S.A.                      SPAIN                        */
+/*   Rapita Systems Ltd                     UK                           */
+/*   Evidence                               ITALY                        */
+/*                                                                       */
+/*   See http://www.frescor.org for a link to partners' websites         */
+/*                                                                       */
+/*          FRESCOR project (FP6/2005/IST/5-034026) is funded            */
+/*       in part by the European Union Sixth Framework Programme         */
+/*       The European Union is not liable of any use that may be         */
+/*       made of this code.                                              */
+/*                                                                       */
+/*                                                                       */
+/*  This file is part of FRSH (FRescor ScHeduler)                        */
+/*                                                                       */
+/* FRSH is free software; you can redistribute it and/or modify it       */
+/* under terms of the GNU General Public License as published by the     */
+/* Free Software Foundation; either version 2, or (at your option) any   */
+/* later version.  FRSH 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   */
+/* General Public License for more details. You should have received a   */
+/* copy of the GNU General Public License along with FRSH; see file      */
+/* COPYING. If not, write to the Free Software Foundation, 675 Mass Ave,  */
+/* Cambridge, MA 02139, USA.                                             */
+/*                                                                       */
+/* As a special exception, including FRSH header files in a file,        */
+/* instantiating FRSH generics or templates, or linking other files      */
+/* with FRSH objects to produce an executable application, does not      */
+/* by itself cause the resulting executable application to be covered    */
+/* by the GNU General Public License. This exception does not            */
+/* however invalidate any other reasons why the executable file might be  */
+/* covered by the GNU Public License.                                    */
+/**************************************************************************/
+
+/**
+ * @file   fres_error.h
+ * @author Michal Sojka <sojkam1@fel.cvut.cz>
+ * @date   Wed Feb 18 15:38:41 2009
+ *
+ * @brief  Error constants and helper functions
+ *
+ */
+
 #ifndef FRES_ERROR_H
 #define FRES_ERROR_H
 
+#include <forb/object_type.h>
+
 #define FRES_ERR_BASE_VALUE                      0x02008000
 
 enum fres_error {
        FRES_ERR_FCB_NOT_RUNNING = FRES_ERR_BASE_VALUE,
+       FRES_ERR_FORB_EXCEPTION,
+       FRES_ERR_BLOCK_NOT_REGISTERED,
+       FRES_ERR_NEEDS_MORE_DATA_IN_CONTRACT,
+       FRES_ERR_NOTHING_TO_RENEGOTIATE,
+       FRES_ERR_BLOCK_DUP,
+       FRES_ERR_NO_RESOURCE_ALLOCATOR,
+       FRES_ERR_ADMISSION_TEST,
+       FRES_ERR_KERNEL_SUPPORT_MISSING,
+       FRES_ERR_FORB_EX_BAD_PARAM,
+       FRES_ERR_FORB_EX_NO_MEMORY,
+       FRES_ERR_FORB_EX_IMP_LIMIT,
+       FRES_ERR_FORB_EX_COMM_FAILURE,
+       FRES_ERR_FORB_EX_INV_OBJREF,
+       FRES_ERR_FORB_EX_NO_PERMISSION,
+       FRES_ERR_FORB_EX_INTERNAL,
+       FRES_ERR_FORB_EX_MARSHAL,
+       FRES_ERR_FORB_EX_INITIALIZE,
+       FRES_ERR_FORB_EX_NO_IMPLEMENT,
+       FRES_ERR_FORB_EX_BAD_OPERATION,
+       FRES_ERR_FORB_EX_NO_RESOURCES,
+       FRES_ERR_FORB_EX_NO_RESPONSE,
+       FRES_ERR_FORB_EX_TRANSIENT,
+       FRES_ERR_FORB_EX_FREE_MEM,
+       FRES_ERR_FORB_EX_INV_IDENT,
+       FRES_ERR_FORB_EX_INV_FLAG,
+       FRES_ERR_FORB_EX_DATA_CONVERSION,
+       FRES_ERR_FORB_EX_OBJECT_NOT_EXIST,
+       FRES_ERR_FORB_EX_TIMEOUT,
+       FRES_ERR_FORB_EX_APPLICATION,
+       FRES_ERR_NO_RESOURCE_MANAGER,
+       FRES_ERR_ALLOCATOR_ALREADY_REGISTERED,
+       FRES_ERR_VRES_ALREADY_ALLOCATED,
+       FRES_ERR_VRES_PART_OF_TRANSACTION,
 };
 
 int fres_strerror (int error, char *message, size_t size);
 
+int fres_forbex2err(CORBA_Environment *env);
 
 #endif