01: /* Copyright 2003 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal;
07:
08: /**
09: * Contains common ErrorIDs.
10: * @author Howard Gilbert
11: * @version $Revision: 34806 $
12: */
13: public class Errors {
14: public static final ErrorID noResourceFile = new ErrorID("deploy",
15: "NoResource", "Missing Resource file");
16: public static final ErrorID noPropertyFile = new ErrorID("deploy",
17: "NoPropertyFile", "Missing Property file");
18: public static final ErrorID noProperty = new ErrorID("config",
19: "NoProperty", "Missing Property file");
20: public static final ErrorID propInit = new ErrorID("config",
21: "PropertyInit", "Error initializing from Properties");
22: public static final ErrorID startServices = new ErrorID("config",
23: "StartServicesFail", "Failed to start Portal services");
24: public static final ErrorID connectDB = new ErrorID("config",
25: "NoDatabaseConn", "Unable to connect to database");
26: public static final ErrorID execDB = new ErrorID("database",
27: "SQLError", "Database request failed");
28: public static final ErrorID noUserInfo = new ErrorID("database",
29: "NoUserInfo", "No portal data for userid");
30: public static final ErrorID noTemplateInfo = new ErrorID(
31: "database", "NoTemplateInfo", "No portal data for template");
32: public static final ErrorID bug = new ErrorID("programming", "Bug",
33: "Programming error");
34: public static final ErrorID badarg = new ErrorID("programming",
35: "badarg", "Invalid argument in function call");
36: public static final ErrorID badstate = new ErrorID("programming",
37: "badstate",
38: "Object is closed, not initialized, or in an incorrect state for request");
39: public static final ErrorID missingdata = new ErrorID(
40: "programming", "missingdata",
41: "Data missing from an internal collection or object");
42: public static final ErrorID inconsistency = new ErrorID(
43: "programming", "inconsistent",
44: "Data is internally inconsistent or malformed");
45: public static final ErrorID badrequest = new ErrorID("programming",
46: "badrequest",
47: "Program internally generated an invalid request");
48: public static final ErrorID newInstance = new ErrorID("config",
49: "newInstance", "Problem loading class or creating instance");
50: public static final ErrorID browserGone = new ErrorID("user",
51: "disconnect", "Browser disconnected from Servlet");
52: public static final ErrorID persistout = new ErrorID("persistance",
53: "writing", "Unable to save information to disk/database");
54: public static final ErrorID persistin = new ErrorID("persistance",
55: "reading", "Unable to read information from disk/database");
56: public static final ErrorID remote = new ErrorID("remote",
57: "remote", "Error in Remote Server");
58: public static final ErrorID XMLparse = new ErrorID("XML", "parse",
59: "Error parsing XML");
60: public static final ErrorID legacy = new ErrorID("legacy",
61: "legacy", "PortalException has no ErrorID");
62: }
|