📄 testexception.java
字号:
// $Id: TestException.java,v 1.2 2002/04/04 08:13:25 pmartin Exp $//// ____.// __/\ ______| |__/\. _______// __ .____| | \ | +----+ \// _______| /--| | | - \ _ | : - \_________// \\______: :---| : : | : | \________>// |__\---\_____________:______: :____|____:_____\// /_____|//// . . . i n j a h i a w e t r u s t . . .//package org.jahia.exceptions;import java.lang.StringBuffer;import org.jahia.exceptions.JahiaException;/** * @author Fulco Houkes * * @version 1.0 */public class TestException extends Exception{ /** Reference to the exception cause */ private JahiaException mExceptionCause = null; private StringBuffer mStringBuffer = null; //------------------------------------------------------------------------- /** * DefaultConstructor */ public TestException () { mStringBuffer = new StringBuffer (); } //------------------------------------------------------------------------- /** * DefaultConstructor */ public TestException (StringBuffer buffer, JahiaException ex) { mStringBuffer = buffer; mExceptionCause = ex; } //------------------------------------------------------------------------- /** * DefaultConstructor */ public TestException (StringBuffer buffer) { mStringBuffer = buffer; } //------------------------------------------------------------------------- /** * Return the exception cause. * * @return * Return the reference on the exception cause. */ public final JahiaException getExceptionCause () { return mExceptionCause; } //------------------------------------------------------------------------- /** * Return the string buffer containing the operations stack. * * @return * Return the reference on the internal string buffer. */ public final StringBuffer getStringBuffer () { return mStringBuffer; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -