01: /*
02: * IzPack - Copyright 2001-2008 Julien Ponge, All Rights Reserved.
03: *
04: * http://www.izforge.com/izpack/ http://izpack.codehaus.org/
05: *
06: * Copyright 2007 Dennis Reil
07: *
08: * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
09: * in compliance with the License. You may obtain a copy of the License at
10: *
11: * http://www.apache.org/licenses/LICENSE-2.0
12: *
13: * Unless required by applicable law or agreed to in writing, software distributed under the License
14: * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
15: * or implied. See the License for the specific language governing permissions and limitations under
16: * the License.
17: */
18: package com.izforge.izpack.io;
19:
20: import java.io.IOException;
21:
22: /**
23: * Exception indicating a corrupt volume.
24: *
25: * @author Dennis Reil, <Dennis.Reil@reddot.de>
26: */
27: public class CorruptVolumeException extends IOException {
28: private static final long serialVersionUID = -1659572038393604549L;
29: // name of the corrupt volume
30: private String volumename;
31:
32: /**
33: *
34: */
35: public CorruptVolumeException() {
36: }
37:
38: /**
39: * @param msg
40: */
41: public CorruptVolumeException(String msg, String volumename) {
42: super (msg);
43: this .volumename = volumename;
44: }
45:
46: public String getVolumename() {
47: return volumename;
48: }
49:
50: public void setVolumename(String volumename) {
51: this.volumename = volumename;
52: }
53: }
|