01: /*
02: * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
03: * Copyright (C) 2005 - Javolution (http://javolution.org/)
04: * All rights reserved.
05: *
06: * Permission to use, copy, modify, and distribute this software is
07: * freely granted, provided that this notice is preserved.
08: */
09:
10: package j2me.lang;
11:
12: public class EnumConstantNotPresentException extends RuntimeException {
13: private java.lang.Class _enumType;
14:
15: private String _constantName;
16:
17: public EnumConstantNotPresentException(java.lang.Class enumType,
18: String constantName) {
19: super (enumType.getName() + "." + constantName);
20: _enumType = enumType;
21: _constantName = constantName;
22: }
23:
24: public java.lang.Class enumType() {
25: return _enumType;
26: }
27:
28: public String constantName() {
29: return _constantName;
30: }
31: }
|