01: /**
02: * YGuard -- an obfuscation library for Java(TM) classfiles.
03: *
04: * Copyright (c) 2003 yWorks GmbH (yguard@yworks.com)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2 of the License, or (at your option) any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: *
20: * The author may be contacted at yguard@yworks.com
21: *
22: * Java and all Java-based marks are trademarks or registered
23: * trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
24: */package com.yworks.yguard.obf;
25:
26: public class NoSuchMappingException extends
27: java.lang.IllegalArgumentException {
28:
29: private String key;
30:
31: /**
32: * Creates a new instance of <code>NoSuchMappingException</code> without detail message.
33: */
34: public NoSuchMappingException(String key) {
35: super ("No mapping found for: " + key);
36: this .key = key;
37: }
38:
39: /**
40: * Constructs an instance of <code>NoSuchMappingException</code> with the specified detail message.
41: * @param msg the detail message.
42: */
43: public NoSuchMappingException() {
44: super ("No mapping found!");
45: this .key = "";
46: }
47:
48: public String getKey() {
49: return key;
50: }
51: }
|