global.sandbox.xmlutilities
Class XmlUtilitiesException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by global.sandbox.xmlutilities.XmlUtilitiesException
All Implemented Interfaces:
Serializable, Iterable<Throwable>

public class XmlUtilitiesException
extends Exception
implements Iterable<Throwable>

Common exception related to XML Utilities.

Since:
1.2
Author:
Petr Hadraba
See Also:
Serialized Form

Nested Class Summary
private static interface XmlUtilitiesException.PrintStreamOrWriter
           
private static class XmlUtilitiesException.WrappedPrintStream
           
private static class XmlUtilitiesException.WrappedPrintWriter
           
 
Field Summary
private static String CONSEQUENT_CAPTION
           
private  List<Throwable> consequents
          Consequent exception; usually finally block.
private static Throwable[] EMPTY_THROWABLE_ARRAY
           
private static Charset INTERNAL_CHARSET
           
private static String INTERNAL_ENCODING
           
private static long serialVersionUID
           
 
Constructor Summary
XmlUtilitiesException()
           
XmlUtilitiesException(String message)
           
XmlUtilitiesException(String message, Throwable cause)
           
XmlUtilitiesException(Throwable cause)
           
 
Method Summary
 void addConsequent(Throwable consequent)
           
 Throwable[] getConsequent()
           
 Iterator<Throwable> iterator()
           
 void printStackTrace()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter s)
           
private  void printStackTrace(XmlUtilitiesException.PrintStreamOrWriter s)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

consequents

private final List<Throwable> consequents
Consequent exception; usually finally block.


EMPTY_THROWABLE_ARRAY

private static final Throwable[] EMPTY_THROWABLE_ARRAY

INTERNAL_ENCODING

private static final String INTERNAL_ENCODING
See Also:
Constant Field Values

INTERNAL_CHARSET

private static final Charset INTERNAL_CHARSET

CONSEQUENT_CAPTION

private static final String CONSEQUENT_CAPTION
See Also:
Constant Field Values
Constructor Detail

XmlUtilitiesException

public XmlUtilitiesException()

XmlUtilitiesException

public XmlUtilitiesException(String message)

XmlUtilitiesException

public XmlUtilitiesException(Throwable cause)

XmlUtilitiesException

public XmlUtilitiesException(String message,
                             Throwable cause)
Method Detail

getConsequent

public Throwable[] getConsequent()

addConsequent

public void addConsequent(Throwable consequent)

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter s)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable

iterator

public Iterator<Throwable> iterator()
Specified by:
iterator in interface Iterable<Throwable>

printStackTrace

private void printStackTrace(XmlUtilitiesException.PrintStreamOrWriter s)


Copyright © 2006–2018. All rights reserved.