01: /*
02: *
03: *
04: * Portions Copyright 2000-2007 Sun Microsystems, Inc. All Rights
05: * Reserved. Use is subject to license terms.
06: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
07: *
08: * This program is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU General Public License version
10: * 2 only, as published by the Free Software Foundation.
11: *
12: * This program is distributed in the hope that it will be useful, but
13: * WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * General Public License version 2 for more details (a copy is
16: * included at /legal/license.txt).
17: *
18: * You should have received a copy of the GNU General Public License
19: * version 2 along with this work; if not, write to the Free Software
20: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21: * 02110-1301 USA
22: *
23: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
24: * Clara, CA 95054 or visit www.sun.com if you need additional
25: * information or have any questions.
26: */
27:
28: /*
29: * Copyright (C) 2002-2003 PalmSource, Inc. All Rights Reserved.
30: */
31:
32: package javax.microedition.pim;
33:
34: /**
35: * This class is defined by the JSR-75 specification
36: * <em>PDA Optional Packages for the J2ME™ Platform</em>
37: */
38: // JAVADOC COMMENT ELIDED
39: public class FieldEmptyException extends java.lang.RuntimeException {
40: /** Field responsible for the exception. */
41: private int offending_field;
42:
43: // JAVADOC COMMENT ELIDED
44: public FieldEmptyException() {
45: super ();
46: offending_field = 0;
47: }
48:
49: // JAVADOC COMMENT ELIDED
50: public FieldEmptyException(String detailMessage) {
51: super (detailMessage);
52: offending_field = 0;
53: }
54:
55: // JAVADOC COMMENT ELIDED
56: public FieldEmptyException(String detailMessage, int field) {
57: super (detailMessage);
58: offending_field = field;
59: }
60:
61: // JAVADOC COMMENT ELIDED
62: public int getField() {
63: return offending_field;
64: }
65: }
|