KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > yworks > yguard > obf > NoSuchMappingException


1 /**
2  * YGuard -- an obfuscation library for Java(TM) classfiles.
3  *
4  * Copyright (c) 2003 yWorks GmbH (yguard@yworks.com)
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * 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  */

25
26 package com.yworks.yguard.obf;
27
28 public class NoSuchMappingException extends java.lang.IllegalArgumentException JavaDoc
29 {
30   
31   private String JavaDoc key;
32   /**
33    * Creates a new instance of <code>NoSuchMappingException</code> without detail message.
34    */

35   public NoSuchMappingException(String JavaDoc key)
36   {
37     super("No mapping found for: "+key);
38     this.key = key;
39   }
40   
41   
42   /**
43    * Constructs an instance of <code>NoSuchMappingException</code> with the specified detail message.
44    * @param msg the detail message.
45    */

46   public NoSuchMappingException()
47   {
48     super("No mapping found!");
49     this.key = "";
50   }
51   
52   public String JavaDoc getKey(){
53     return key;
54   }
55 }
56
Popular Tags