1 /*
2 * Copyright (2005-2009) Schibsted ASA
3 * This file is part of SESAT.
4 *
5 * SESAT is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * SESAT 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
13 * GNU Affero General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public License
16 * along with SESAT. If not, see <http://www.gnu.org/licenses/>.
17 */
18 package no.sesat.search.user.service;
19
20 /**
21 * Exception that is used if an illegal token is used with a login cookie. This is a
22 * signal of theft of the login.
23 *
24 * @version <tt>$Id: InvalidTokenException.java 23 2009-06-23 16:17:24Z ssmiweve $</tt>
25 */
26 public final class InvalidTokenException extends Exception {
27
28 // Constants -----------------------------------------------------
29
30 private static final long serialVersionUID = -1118441682788066379L;
31
32 // Attributes ----------------------------------------------------
33
34 // Static --------------------------------------------------------
35
36 // Constructors --------------------------------------------------
37
38 /** Default constructor. */
39 public InvalidTokenException() {
40 super();
41 }
42
43 /**
44 * Constructor with an error message.
45 *
46 * @param message Error message to include in the exception.
47 */
48 public InvalidTokenException(final String message) {
49 super(message);
50 }
51
52 // Public --------------------------------------------------------
53
54 // Package protected ---------------------------------------------
55
56 // Protected -----------------------------------------------------
57
58 // Private -------------------------------------------------------
59
60 // Inner classes -------------------------------------------------
61
62 }