01: /*
02: * $Id: StopwatchStorageException.java,v 1.1 2006/03/06 11:30:53 azzazzel Exp $
03: *
04: * Copyright 2006 Commsen International
05: *
06: * Licensed under the Common Public License, Version 1.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.opensource.org/licenses/cpl1.0.txt
11: *
12: * THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13: * EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS
14: * OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
15: *
16: */
17: package com.commsen.stopwatch;
18:
19: /**
20: * Thrown when error occures while reading or writing data from/to given storage.
21: * If storage is database, this class acts as simple wrapper for SQLException.
22: *
23: * @author Milen Dyankov
24: *
25: */
26: public class StopwatchStorageException extends Exception {
27:
28: /**
29: *
30: */
31: private static final long serialVersionUID = 1L;
32:
33: /**
34: *
35: */
36: public StopwatchStorageException() {
37: super ();
38: }
39:
40: /**
41: * @param message
42: */
43: public StopwatchStorageException(String message) {
44: super (message);
45: }
46:
47: /**
48: * @param cause
49: */
50: public StopwatchStorageException(Throwable cause) {
51: super (cause);
52: }
53:
54: /**
55: * @param message
56: * @param cause
57: */
58: public StopwatchStorageException(String message, Throwable cause) {
59: super(message, cause);
60: }
61:
62: }
|