KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > generic > OpenCrxException


1 /*
2  * ====================================================================
3  * Project: opencrx, http://www.opencrx.org/
4  * Name: $Id: OpenCrxException.java,v 1.28 2006/03/23 00:55:42 wfro Exp $
5  * Description: openCRX application plugin
6  * Revision: $Revision: 1.28 $
7  * Owner: CRIXP AG, Switzerland, http://www.crixp.com
8  * Date: $Date: 2006/03/23 00:55:42 $
9  * ====================================================================
10  *
11  * This software is published under the BSD license
12  * as listed below.
13  *
14  * Copyright (c) 2004-2005, CRIXP Corp., Switzerland
15  * All rights reserved.
16  *
17  * Redistribution and use in source and binary forms, with or without
18  * modification, are permitted provided that the following conditions
19  * are met:
20  *
21  * * Redistributions of source code must retain the above copyright
22  * notice, this list of conditions and the following disclaimer.
23  *
24  * * Redistributions in binary form must reproduce the above copyright
25  * notice, this list of conditions and the following disclaimer in
26  * the documentation and/or other materials provided with the
27  * distribution.
28  *
29  * * Neither the name of CRIXP Corp. nor the names of the contributors
30  * to openCRX may be used to endorse or promote products derived
31  * from this software without specific prior written permission
32  *
33  *
34  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
35  * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
36  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
37  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
38  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
39  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
40  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
41  * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
42  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
43  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
44  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
45  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
46  * POSSIBILITY OF SUCH DAMAGE.
47  *
48  * ------------------
49  *
50  * This product includes software developed by the Apache Software
51  * Foundation (http://www.apache.org/).
52  *
53  * This product includes software developed by contributors to
54  * openMDX (http://www.openmdx.org/)
55  */

56 package org.opencrx.kernel.generic;
57
58 public class OpenCrxException {
59     
60     public static final String JavaDoc DOMAIN = "OpenCrxDomain";
61     
62     // openCRX kernel: Access Control
63
public static final int AUTHORIZATION_FAILURE_UPDATE = 1000;
64     public static final int AUTHORIZATION_FAILURE_DELETE = 1001;
65     public static final int AUTHORIZATION_FAILURE_CREATE = 1002;
66     public static final int AUTHORIZATION_FAILURE_MISSING_PRINCIPAL = 1003;
67     
68     // openCRX kernel: Activities
69
public static final int INCIDENT_USER_DOES_NOT_MATCH_CONTACT = 1100;
70     public static final int INCIDENT_STATE_MUST_BE_NA_OR_OPEN = 1101;
71     public static final int INCIDENT_STATE_MUST_OPEN = 1102;
72     public static final int INCIDENT_STATE_MUST_BE_COMPLETE = 1103;
73     public static final int ACTIVITY_GROUP_HAS_ASSIGNED_ACTIVITIES = 1104;
74     public static final int ACTIVITY_UNDEFINED_NEXT_STATE = 1105;
75     public static final int ACTIVITY_TRANSITION_NOT_VALID_FOR_STATE = 1106;
76    
77     // openCRX kernel: Depot
78
public static final int DEPOT_MISSING_BOOKING_TEXT = 1200;
79     public static final int DEPOT_MISSING_POSITION_CREDIT = 1201;
80     public static final int DEPOT_MISSING_POSITION_DEBIT = 1202;
81     public static final int DEPOT_MISSING_QUANTITY = 1203;
82     public static final int DEPOT_POSITION_NAME_MISMATCH = 1204;
83     public static final int DEPOT_MISSING_PRODUCT = 1205;
84     public static final int DEPOT_INVALID_POSITION_CREDIT = 1206;
85     public static final int DEPOT_INVALID_POSITION_DEBIT = 1207;
86     public static final int DEPOT_MISSING_DEPOT_NUMBER = 1208;
87     public static final int DEPOT_DEPOT_NOT_FOUND = 1209;
88     public static final int DEPOT_BOOKING_PERIOD_NOT_FOUND = 1210;
89     public static final int DEPOT_BOOKING_PERIOD_IS_CLOSED = 1211;
90     public static final int DEPOT_BOOKING_PERIOD_IS_FINAL = 1212;
91     public static final int DEPOT_DEPOT_IS_LOCKED = 1213;
92     public static final int DEPOT_DEPOT_IS_CLOSED_CAN_NOT_BOOK = 1214;
93     public static final int DEPOT_DEPOT_IS_NOT_OPEN = 1215;
94     public static final int DEPOT_POSITION_IS_LOCKED = 1216;
95     public static final int DEPOT_POSITION_IS_CLOSED = 1217;
96     public static final int DEPOT_POSITION_IS_NOT_OPEN = 1218;
97     public static final int DEPOT_REVERSAL_BALANCE_MISMATCH = 1219;
98     public static final int DEPOT_CAN_NOT_CANCEL_REVERSAL_BOOKING = 1220;
99     public static final int DEPOT_ALREADY_HAS_REVERSAL_BOOKING = 1221;
100     public static final int DEPOT_CAN_NOT_REMOVE_BOOKING = 1222;
101     public static final int BOOKING_STATUS_MUST_BE_PENDING = 1223;
102     public static final int BOOKING_STATUS_MUST_BE_PROCESSED = 1224;
103     public static final int BOOKING_DEPOT_NUMBER_REQUIRED = 1225;
104     public static final int BOOKING_DEPOT_IS_CLOSED_CAN_NOT_CLOSE = 1226;
105     public static final int BOOKING_DEPOT_POSITION_IS_CLOSED_CAN_NOT_CLOSE = 1227;
106     public static final int DEPOT_ENTITY_HAS_BOOKINGS = 1228;
107     public static final int DEPOT_CONTRACT_HAS_BOOKINGS = 1229;
108     public static final int DEPOT_DEPOT_HAS_BOOKINGS = 1230;
109     public static final int DEPOT_POSITION_HAS_BOOKINGS = 1231;
110     
111     // openCRX kernel: Contract
112
public static final int CONTRACT_MISSING_PRODUCT_OFFERING = 1232;
113     public static final int CONTRACT_MAX_POSITIONS_REACHED = 1233;
114     public static final int CONTRACT_MIN_POSITIONS_REACHED = 1234;
115     public static final int BOOKING_IS_LOCKED_CAN_NOT_DELETE = 1235;
116     public static final int CONTRACT_MISSING_DEPOT_GOODS_ISSUE = 1236;
117     public static final int CONTRACT_MISSING_DEPOT_GOODS_RETURN = 1237;
118     public static final int CONTRACT_MISSING_DEPOT_GOODS_DELIVERY = 1238;
119     
120     // openCRX kernel: Workflow
121
public static final int WORKFLOW_MISSING_WORKFLOW = 1239;
122     public static final int WORKFLOW_MISSING_TARGET = 1240;
123     public static final int WORKFLOW_NO_IMPLEMENTATION = 1241;
124     public static final int WORKFLOW_MISSING_CONSTRUCTOR = 1242;
125     public static final int WORKFLOW_CAN_NOT_INSTANTIATE = 1243;
126     public static final int WORKFLOW_ILLEGAL_ACCESS = 1244;
127     public static final int WORKFLOW_ILLEGAL_ARGUMENT = 1245;
128     public static final int WORKFLOW_CAN_NOT_INVOKE = 1246;
129     public static final int WORKFLOW_CAN_NOT_CREATE_PROCESS_INSTANCE = 1247;
130     
131     // openCRX kernel: Depot
132
public static final int DEPOT_DEPOT_ENTITY_NOT_EQUAL = 1248;
133     
134     // openCRX kernel: Product
135
public static final int PRODUCT_OPERATION_NOT_ALLOWED_FOR_NON_BASIC_PRICE_LEVEL = 1251;
136     public static final int PRODUCT_OPERATION_NOT_ALLOWED_FOR_FINAL_PRICE_LEVEL = 1252;
137     public static final int PRODUCT_PRICE_LEVEL_MUST_HAVE_CURRENCY = 1253;
138     public static final int PRODUCT_OPERATION_NOT_ALLOWED_FOR_BASEDON_PRICE_LEVEL = 1254;
139     public static final int PRODUCT_OPERATION_NOT_ALLOWED_FOR_PRICE_LEVEL_HAVING_PRICES = 1255;
140     public static final int PRODUCT_OPERATION_NOT_ALLOWED_FOR_BASIC_PRICE_LEVEL = 1256;
141     
142     // openCRX kernel: Common
143
public static final int ASSERTION_FAILURE = 10000;
144     public static final int MEDIA_ACCESS_FAILURE = 10001;
145     public static final int REFERENCE_IS_READONLY = 10002;
146     public static final int OBJECT_TYPE_IS_READONLY = 10003;
147     public static final int DUPLICATE_OBJECT = 10004;
148
149     // User-defined: >= 20000
150
}
151
152 //--- End of File -----------------------------------------------------------
153
Popular Tags