PageRenderTime 14ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/bundles/plugins-trunk/JavaInsight/javainsight/buildtools/ChainedIOException.java

#
Java | 57 lines | 22 code | 8 blank | 27 comment | 0 complexity | 53918e055cef51daea1f76ba1ac61ca5 MD5 | raw file
 1/*
 2 * ChainedIOException.java
 3 * Copyright (c) 2007 Dirk Moebius
 4 *
 5 * jEdit edit mode settings:
 6 * :mode=java:tabSize=4:indentSize=4:noTabs=true:maxLineLen=0:
 7 *
 8 * This program is free software; you can redistribute it and/or
 9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 */
22
23package javainsight.buildtools;
24
25import java.io.IOException;
26
27/**
28 * Chained IOException (Java1.4+).
29 *
30 * @author Dirk Moebius
31 * @version $Id$
32 */
33public class ChainedIOException extends IOException
34{
35    private final Throwable cause;
36
37    public ChainedIOException(String message) {
38        super(message);
39        this.cause = null;
40    }
41
42    public ChainedIOException(String message, Throwable cause) {
43        super(message);
44        this.cause = cause;
45    }
46
47    public ChainedIOException(Throwable cause) {
48        super();
49        this.cause = cause;
50    }
51    
52    @Override
53    public Throwable getCause() {
54        return cause;
55    }
56
57}