diff options
author | pdanner <pdanner@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2007-09-05 10:19:19 +0000 |
---|---|---|
committer | pdanner <pdanner@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2007-09-05 10:19:19 +0000 |
commit | ef61e7c9b4591f65ebe9abf6afad51999136e41c (patch) | |
tree | 9685b0eafa4f3793f02c96c2999fa1603fbc9e85 /erecht.client.ss/src/at/gv/egovernment/moa/ss/erechtclient/ERechtClientException.java | |
parent | 15ff0aeee18b4f7774d65b3b6b4fdba04996efe9 (diff) | |
download | moa-id-spss-ef61e7c9b4591f65ebe9abf6afad51999136e41c.tar.gz moa-id-spss-ef61e7c9b4591f65ebe9abf6afad51999136e41c.tar.bz2 moa-id-spss-ef61e7c9b4591f65ebe9abf6afad51999136e41c.zip |
removed obsolete files
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@992 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'erecht.client.ss/src/at/gv/egovernment/moa/ss/erechtclient/ERechtClientException.java')
-rw-r--r-- | erecht.client.ss/src/at/gv/egovernment/moa/ss/erechtclient/ERechtClientException.java | 111 |
1 files changed, 0 insertions, 111 deletions
diff --git a/erecht.client.ss/src/at/gv/egovernment/moa/ss/erechtclient/ERechtClientException.java b/erecht.client.ss/src/at/gv/egovernment/moa/ss/erechtclient/ERechtClientException.java deleted file mode 100644 index 1650e1641..000000000 --- a/erecht.client.ss/src/at/gv/egovernment/moa/ss/erechtclient/ERechtClientException.java +++ /dev/null @@ -1,111 +0,0 @@ -package at.gv.egovernment.moa.ss.erechtclient; - -import java.io.BufferedWriter; -import java.io.ByteArrayOutputStream; -import java.io.PrintStream; -import java.io.PrintWriter; -import java.io.Writer; - -import javax.servlet.ServletOutputStream; - -/** - * Base class of MOA specific exceptions. - * - * This class has the ability to wrap other exceptions which may be seen - * as the root cause for this exception. - * - * @author Gregor Karlinger - * @version $Id$ - */ -public class ERechtClientException extends Exception { - - /** The wrapped <code>Throwable</code>. */ - private Throwable wrapped_; - - /** - * Create a <code>MOAException</code>. - * - * @param message The message contained in the created <code>ERechtClientException</code>. - */ - public ERechtClientException(String message) - { - super(message); - } - - /** - * Create a <code>MOAException</code>. - * - * @param message The message contained in the created <code>ERechtClientException</code>. - * - * @param wrapped The exception wrapped by the created <code>ERechtClientException</code>. - */ - public ERechtClientException(String message, Throwable wrapped) - { - super(message, wrapped); - this.wrapped_ = wrapped; - } - - /** - * Print a stack trace of this exception to <code>System.err</code>. - * - * @see java.lang.Throwable#printStackTrace() - */ - public void printStackTrace() - { - printStackTrace(System.err); - } - - /** - * Print a stack trace of this exception, including the wrapped exception. - * - * @param s The stream to write the stack trace to. - * - * @see java.lang.Throwable#printStackTrace(java.io.PrintStream) - */ - public void printStackTrace(PrintStream s) - { - super.printStackTrace(s); - if (wrapped_ != null) - { - s.print("Caused by: "); - wrapped_.printStackTrace(s); - } - } - - /** - * Print a stack trace of this exception, including the wrapped exception. - * - * @param s The stream to write the stacktrace to. - * - * @see java.lang.Throwable#printStackTrace(java.io.PrintWriter) - */ - public void printStackTrace(PrintWriter s) { - super.printStackTrace(s); - if (wrapped_ != null) - { - s.print("Caused by: "); - wrapped_.printStackTrace(s); - } - } - - /** - * Print a stack trace of this exception, including the wrapped exception. - * - * @param s The stream to write the stacktrace to. - * - * @see java.lang.Throwable#printStackTrace(java.io.PrintWriter) - */ - public String getStackTracePrint() - { - ByteArrayOutputStream bAOS = new ByteArrayOutputStream(); - PrintWriter s = new PrintWriter(bAOS); - super.printStackTrace(s); - if (wrapped_ != null) - { - s.print("Caused by: "); - wrapped_.printStackTrace(s); - } - s.flush(); - return bAOS.toString(); - } -} |