01: /**********************************************************************************
02: *
03: * Copyright (c) 2003, 2004 The Regents of the University of Michigan, Trustees of Indiana University,
04: * Board of Trustees of the Leland Stanford, Jr., University, and The MIT Corporation
05: *
06: * Licensed under the Educational Community License Version 1.0 (the "License");
07: * By obtaining, using and/or copying this Original Work, you agree that you have read,
08: * understand, and will comply with the terms and conditions of the Educational Community License.
09: * You may obtain a copy of the License at:
10: *
11: * http://cvs.sakaiproject.org/licenses/license_1_0.html
12: *
13: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
14: * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
15: * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16: * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17: * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18: *
19: **********************************************************************************/package edu.indiana.lib.twinpeaks.util;
20:
21: public class SessionTimeoutException extends RuntimeException {
22: /**
23: * Standard timeout response
24: */
25: public static final String TIMEOUT_MESSAGE = "Your session has timed out - please start again with a new search";
26:
27: /**
28: * Thrown to indicate that the user's session has timed out
29: * @param text Explainatory text
30: */
31: public SessionTimeoutException(String text) {
32: super (text);
33: }
34:
35: /**
36: * Thrown to indicate a DOM processing issue
37: */
38: public SessionTimeoutException() {
39: super(TIMEOUT_MESSAGE);
40: }
41: }
|