01: /**********************************************************************************
02: *
03: * $Id: GradebookException.java 8234 2006-04-25 01:18:48Z ray@media.berkeley.edu $
04: *
05: ***********************************************************************************
06: *
07: * Copyright (c) 2005, 2006 The Regents of the University of California, The MIT Corporation
08: *
09: * Licensed under the Educational Community License Version 1.0 (the "License");
10: * By obtaining, using and/or copying this Original Work, you agree that you have read,
11: * understand, and will comply with the terms and conditions of the Educational Community License.
12: * You may obtain a copy of the License at:
13: *
14: * http://www.opensource.org/licenses/ecl1.php
15: *
16: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
17: * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
18: * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
19: * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20: * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21: *
22: **********************************************************************************/package org.sakaiproject.service.gradebook.shared;
23:
24: /**
25: * An exception thrown by the gradebook application. If a gradebook
26: * client does not want to handle each of the gradebook's specific exceptions
27: * individually, it can simply deal with GradebookException to handle all possible
28: * exceptions.
29: *
30: * These were changed to runtime exceptions after the 2.1 release to make
31: * it easier to throw them while using Hibernate. By default, Spring will
32: * mark a transaction as rollback-only when a runtime exception is thrown
33: * by a proxied method but will leave the transaction alone when a checked
34: * exception is thrown. To preserve the original transaction-preserving
35: * behavior, this exception class is explicitly called out in the Spring
36: * TransactionProxyFactoryBean configuration file using the following syntax:
37: *
38: * <prop key="create*">PROPAGATION_REQUIRED,+org.sakaiproject.service.gradebook.shared.GradebookException</prop>
39: */
40: public class GradebookException extends RuntimeException {
41: protected GradebookException(String message) {
42: super (message);
43: }
44:
45: protected GradebookException(Throwable t) {
46: super(t);
47: }
48: }
|