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.util;
11:
12: public class IllegalFormatConversionException extends
13: IllegalFormatException {
14: private char c;
15:
16: private Class arg;
17:
18: public IllegalFormatConversionException(char c, Class arg) {
19: if (arg == null)
20: throw new NullPointerException();
21: this .c = c;
22: this .arg = arg;
23: }
24:
25: public char getConversion() {
26: return c;
27: }
28:
29: public Class getArgumentClass() {
30: return arg;
31: }
32:
33: }
|