baseexception.java

来自「xstream是一个把java object序列化成xml文件的开源库,轻便好用」· Java 代码 · 共 32 行

JAVA
32
字号
package com.thoughtworks.xstream.core;/** * JDK1.3 friendly exception that retains cause. */public abstract class BaseException extends RuntimeException {    private Throwable cause;    protected BaseException(String message, Throwable cause) {        super(message + (cause == null ? "" : " : " + cause.getMessage()));        this.cause = cause;    }    protected BaseException(Throwable cause) {        this("", cause);    }    protected BaseException(String message) {        this(message, null);    }    protected BaseException() {        this("", null);    }    public Throwable getCause() {        return cause;    }    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?