eZ Publish  [4.0]
ezerror.php
Go to the documentation of this file.
00001 <?php
00002 //
00003 // Created on: <01-Oct-2002 13:23:07 amos>
00004 //
00005 // ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
00006 // SOFTWARE NAME: eZ Publish
00007 // SOFTWARE RELEASE: 4.0.x
00008 // COPYRIGHT NOTICE: Copyright (C) 1999-2008 eZ Systems AS
00009 // SOFTWARE LICENSE: GNU General Public License v2.0
00010 // NOTICE: >
00011 //   This program is free software; you can redistribute it and/or
00012 //   modify it under the terms of version 2.0  of the GNU General
00013 //   Public License as published by the Free Software Foundation.
00014 //
00015 //   This program 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
00018 //   GNU General Public License for more details.
00019 //
00020 //   You should have received a copy of version 2.0 of the GNU General
00021 //   Public License along with this program; if not, write to the Free
00022 //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00023 //   MA 02110-1301, USA.
00024 //
00025 //
00026 // ## END COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
00027 //
00028 
00029 /*! \file ezerror.php
00030   Contains all the basic kernel and kernel related error codes.
00031 */
00032 
00033 class eZError
00034 {
00035 
00036 /*!
00037  Access denied to object or module.
00038 */
00039 const KERNEL_ACCESS_DENIED = 1;
00040 /*!
00041  The object could not be found.
00042 */
00043 const KERNEL_NOT_FOUND = 2;
00044 /*!
00045  The object is not available.
00046 */
00047 const KERNEL_NOT_AVAILABLE = 3;
00048 /*!
00049  The object is moved.
00050 */
00051 const KERNEL_MOVED = 4;
00052 /*!
00053  The language is not found.
00054 */
00055 const KERNEL_LANGUAGE_NOT_FOUND = 5;
00056 
00057 /*!
00058  The module could not be found.
00059 */
00060 const KERNEL_MODULE_NOT_FOUND = 20;
00061 /*!
00062  The module view could not be found.
00063 */
00064 const KERNEL_MODULE_VIEW_NOT_FOUND = 21;
00065 /*!
00066  The module or view is not enabled.
00067 */
00068 const KERNEL_MODULE_DISABLED = 22;
00069 
00070 
00071 /*!
00072  No database connection
00073 */
00074 const KERNEL_NO_DB_CONNECTION = 50;
00075 
00076 //Shop system error codes
00077 const SHOP_OK = 0;
00078 const SHOP_NOT_A_PRODUCT = 1;
00079 const SHOP_BASKET_INCOMPATIBLE_PRODUCT_TYPE = 2;
00080 const SHOP_PREFERRED_CURRENCY_DOESNOT_EXIST = 3;
00081 const SHOP_PREFERRED_CURRENCY_INACTIVE = 4;
00082 
00083 
00084 }
00085 
00086 ?>