01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/osp/tags/sakai_2-4-1/common/api/src/java/org/theospi/portfolio/shared/model/OspException.java $
03: * $Id: OspException.java 9134 2006-05-08 20:28:42Z chmaurer@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.theospi.portfolio.shared.model;
21:
22: public class OspException extends RuntimeException {
23: public static final String CREATE_FAILED = "Create failed ";
24: public static final String CREATE_STREAM_FAILED = "Create stream failed ";
25: public static final String DELETE_FAILED = "Delete failed";
26: public static final String MOVE_FAILED = "Move failed ";
27: public static final String RENAME_FAILED = "Rename failed ";
28: public static final String WRITE_STREAM_FAILED = "Create stream failed ";
29:
30: /**
31: *
32: */
33: public OspException() {
34: super ();
35: }
36:
37: /**
38: * @param cause
39: */
40: public OspException(Throwable cause) {
41: super (cause);
42: }
43:
44: /**
45: * @param message
46: */
47: public OspException(String message) {
48: super (message);
49: }
50:
51: /**
52: * @param message
53: * @param cause
54: */
55: public OspException(String message, Throwable cause) {
56: super(message, cause);
57: }
58:
59: }
|