jas2.util
Class NestedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- jas2.util.NestedException
-
- All Implemented Interfaces:
- HasNestedException, java.io.Serializable
- Direct Known Subclasses:
- JASDOMParser.JASXMLException, JASException, LoaderException, ModuleException, ObjectFactoryException, OpenJobException
public class NestedException extends java.lang.Exception implements HasNestedException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description NestedException()Create a remote exceptionNestedException(java.lang.String s)Create a remote exception with the specified stringNestedException(java.lang.String s, java.lang.Throwable ex)Create a remote exception with the specified string, and the exception specified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static java.lang.StringformatNestedException(HasNestedException t)java.lang.StringgetMessage()Produce the message, include the message from the nested exception if there is one.java.lang.ThrowablegetNestedException()java.lang.StringgetSimpleMessage()Return just the super classes messagevoidprintStackTrace()voidprintStackTrace(java.io.PrintStream s)voidprintStackTrace(java.io.PrintWriter s)
-
-
-
Constructor Detail
-
NestedException
public NestedException()
Create a remote exception
-
NestedException
public NestedException(java.lang.String s)
Create a remote exception with the specified string
-
NestedException
public NestedException(java.lang.String s, java.lang.Throwable ex)Create a remote exception with the specified string, and the exception specified.
-
-
Method Detail
-
getNestedException
public java.lang.Throwable getNestedException()
- Specified by:
getNestedExceptionin interfaceHasNestedException
-
getMessage
public java.lang.String getMessage()
Produce the message, include the message from the nested exception if there is one.- Specified by:
getMessagein interfaceHasNestedException- Overrides:
getMessagein classjava.lang.Throwable
-
getSimpleMessage
public java.lang.String getSimpleMessage()
Return just the super classes message- Specified by:
getSimpleMessagein interfaceHasNestedException
-
formatNestedException
public static java.lang.String formatNestedException(HasNestedException t)
-
printStackTrace
public void printStackTrace()
- Overrides:
printStackTracein classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintStream s)
- Overrides:
printStackTracein classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintWriter s)
- Overrides:
printStackTracein classjava.lang.Throwable
-
-
DataMelt 3.0 © DataMelt by jWork.ORG