diff options
author | Michi Henning <michi@zeroc.com> | 2007-11-21 16:37:35 +1000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2007-11-21 16:37:35 +1000 |
commit | a383113f0becaa15b7e047798aa57026133f9077 (patch) | |
tree | db198efbd739eb6b6b3864c4fdbc0385e4f326be /java/src/Ice/SystemException.java | |
parent | Fix a problem where protocol selection and other runtime flags were (diff) | |
download | ice-a383113f0becaa15b7e047798aa57026133f9077.tar.bz2 ice-a383113f0becaa15b7e047798aa57026133f9077.tar.xz ice-a383113f0becaa15b7e047798aa57026133f9077.zip |
Bug 2541.
Diffstat (limited to 'java/src/Ice/SystemException.java')
-rw-r--r-- | java/src/Ice/SystemException.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/java/src/Ice/SystemException.java b/java/src/Ice/SystemException.java new file mode 100644 index 00000000000..f642be3992d --- /dev/null +++ b/java/src/Ice/SystemException.java @@ -0,0 +1,35 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +package Ice; + +public abstract class SystemException extends LocalException implements Cloneable +{ + public java.lang.Object clone() + { + return super.clone(); + } + + public abstract String + ice_name(); + + public String + toString() + { + java.io.StringWriter sw = new java.io.StringWriter(); + java.io.PrintWriter pw = new java.io.PrintWriter(sw); + IceUtil.OutputBase out = new IceUtil.OutputBase(pw); + out.setUseTab(false); + out.print(getClass().getName()); + out.inc(); + IceInternal.ValueWriter.write(this, out); + pw.flush(); + return sw.toString(); + } +} |