Package org.apache.xmlbeans.xml.stream
Class XMLStreamException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.apache.xmlbeans.xml.stream.XMLStreamException
-
- All Implemented Interfaces:
Serializable
,NestedThrowable
- Direct Known Subclasses:
XMLStreamValidationException
public class XMLStreamException extends IOException implements NestedThrowable
The base exception for unexpected input during XML handling- Since:
- Weblogic XML Input Stream 1.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.xmlbeans.xml.stream.utils.NestedThrowable
NestedThrowable.Util
-
-
Constructor Summary
Constructors Constructor Description XMLStreamException()
XMLStreamException(String msg)
XMLStreamException(String msg, Throwable th)
XMLStreamException(Throwable th)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
Throwable
getNested()
Gets the nested Throwable.Throwable
getNestedException()
Gets the nested exception.void
printStackTrace()
Prints the stack trace associated with this exception and its nested exception to System.err.void
printStackTrace(PrintStream s)
Prints the stack trace associated with this exception and its nested exception.void
printStackTrace(PrintWriter w)
Prints the stack trace associated with this exception and its nested exception.void
superPrintStackTrace(PrintStream ps)
Call super.printStackTrace().void
superPrintStackTrace(PrintWriter pw)
Call super.printStackTrace().String
superToString()
Call super.toString().String
toString()
Prints the exception message and its nested exception message.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
-
-
-
Method Detail
-
getNestedException
public Throwable getNestedException()
Gets the nested exception.- Returns:
- Nested exception
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getNested
public Throwable getNested()
Gets the nested Throwable.- Specified by:
getNested
in interfaceNestedThrowable
- Returns:
- Nested exception
-
superToString
public String superToString()
Description copied from interface:NestedThrowable
Call super.toString(). [Kludge but necessary.]- Specified by:
superToString
in interfaceNestedThrowable
-
superPrintStackTrace
public void superPrintStackTrace(PrintStream ps)
Description copied from interface:NestedThrowable
Call super.printStackTrace(). [Kludge but necessary.]- Specified by:
superPrintStackTrace
in interfaceNestedThrowable
-
superPrintStackTrace
public void superPrintStackTrace(PrintWriter pw)
Description copied from interface:NestedThrowable
Call super.printStackTrace(). [Kludge but necessary.]- Specified by:
superPrintStackTrace
in interfaceNestedThrowable
-
toString
public String toString()
Prints the exception message and its nested exception message.
-
printStackTrace
public void printStackTrace(PrintStream s)
Prints the stack trace associated with this exception and its nested exception.- Overrides:
printStackTrace
in classThrowable
- Parameters:
s
- PrintStream
-
printStackTrace
public void printStackTrace(PrintWriter w)
Prints the stack trace associated with this exception and its nested exception.- Overrides:
printStackTrace
in classThrowable
- Parameters:
s
- PrintStream
-
printStackTrace
public void printStackTrace()
Prints the stack trace associated with this exception and its nested exception to System.err.- Overrides:
printStackTrace
in classThrowable
- Parameters:
s
- PrintStream
-
-