Top Constructors Methods
com.ctc.wstx.util

public final Class ExceptionUtil

extends Object
Class Inheritance
Imports
java.io.IOException

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static IOException
public static void
public static void
public static void
throwGenericInternal()

This method is just added for convenience, and only to be used for assertion style of exceptions.

public static void
public static void
public static void
throwRuntimeException(Throwable t)

Method that can be used to convert any Throwable to a RuntimeException; conversion is only done for checked exceptions.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ExceptionUtilback to summary
private ExceptionUtil()

Method Detail

constructIOExceptionback to summary
public static IOException constructIOException(String msg, Throwable src)
setInitCauseback to summary
public static void setInitCause(Throwable newT, Throwable rootT)
throwAsIllegalArgumentback to summary
public static void throwAsIllegalArgument(Throwable t)
throwGenericInternalback to summary
public static void throwGenericInternal()

This method is just added for convenience, and only to be used for assertion style of exceptions. For errors that actually occur, method with the string arg should be called instead.

throwIfUncheckedback to summary
public static void throwIfUnchecked(Throwable t)
throwInternalback to summary
public static void throwInternal(String msg)
throwRuntimeExceptionback to summary
public static void throwRuntimeException(Throwable t)

Method that can be used to convert any Throwable to a RuntimeException; conversion is only done for checked exceptions.