The following is my basic encapsulation of exception, the next exception to inherit this base class, continue to expand. Give everyone an unusual preliminary writing.
Package jp.co.yachiyobank.inf.com.frw.baseExp;
Import Java.io.PrintStream;
Import Java.io.PrintWriter;
public class Baseexception extends exception{
private static final long serialversionuid = 1L;
private throwable throwable;
&NBSP
/**
*クラスのコンストラクタ
* @param なし
*/
public baseexception () {
super ();
}
/**
*クラスのコンストラクタ
* @param msgエラーメッセージ
*/
public Baseexception (String msg) {
super (msg);
 &NBSP
/**
*クラスのコンストラクタ
* @param msgエラーメッセージ
* @ param throwable
*/
public baseexception (String msg,throwable throwable) {
super ( msg,throwable);
}
/**
*
* @param なし
*/
public throwable getexception () {
& Nbsp; throwable=super.getcause ();
return throwable
.}
/**
*
* @param なし
*/
public void Printstacktrace () {
Super.printstacktrace ();
}
/**
*
* @param printstream
*/
public void Printstacktrace (PrintStream printstream) {
Super.printstacktrace (PrintStream);
}
/**
*
* @param printwriter
*/
public void Printstacktrace (PrintWriter printwriter) {
Super.printstacktrace (PrintWriter);
}
}