01: /*
02: * Primitive Collections for Java.
03: * Copyright (C) 2002 Søren Bak
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation; either
08: * version 2.1 of the License, or (at your option) any later version.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library; if not, write to the Free Software
17: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18: */
19: package bak.pcj.map;
20:
21: /**
22: * Thrown to indicate that an attempt was made to retrieve a
23: * non-existing mapping in a map.
24: *
25: * @author Søren Bak
26: * @version 1.0 2002/30/12
27: * @since 1.0
28: */
29: public class NoSuchMappingException extends RuntimeException {
30:
31: /**
32: * Creates a new exception with a specified detail message.
33: * The message indicates the key of the mapping that was
34: * not available.
35: *
36: * @param s
37: * the detail message.
38: *
39: * @throws NullPointerException
40: * if <tt>s</tt> is <tt>null</tt>.
41: */
42: public NoSuchMappingException(String s) {
43: super(s);
44: }
45:
46: }
|