|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.util.Exceptions
public class Exceptions
Utility methods for externalizing and handling exceptions.
Field Summary | |
---|---|
static Throwable[] |
EMPTY_THROWABLES
|
(package private) static String |
SEP
|
Constructor Summary | |
---|---|
Exceptions()
|
Method Summary | |
---|---|
static void |
printNestedThrowables(ExceptionInfo e,
PrintStream out)
Print the stack trace of the exception's nested throwables. |
static void |
printNestedThrowables(ExceptionInfo e,
PrintWriter out)
Print the stack trace of the exception's nested throwables. |
static Object |
replaceFailedObject(Object ob)
Convert the specified failed object into a serializable object for when we are serializing an Exception. |
static Throwable[] |
replaceNestedThrowables(Throwable[] nested)
Convert the specified throwables into a serialzable array. |
static String |
toClassName(Class<?> cls)
|
static String |
toClassNames(Collection<? extends Class<?>> classes)
|
static String |
toString(Collection failed)
Safely stringify the given objects. |
static String |
toString(ExceptionInfo e)
Stringify the given exception. |
static String |
toString(Object ob)
Safely stringify the given object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Throwable[] EMPTY_THROWABLES
static final String SEP
Constructor Detail |
---|
public Exceptions()
Method Detail |
---|
public static String toString(Object ob)
public static String toString(Collection failed)
public static String toString(ExceptionInfo e)
public static void printNestedThrowables(ExceptionInfo e, PrintStream out)
public static void printNestedThrowables(ExceptionInfo e, PrintWriter out)
public static Object replaceFailedObject(Object ob)
ob
- the object to convert
public static Throwable[] replaceNestedThrowables(Throwable[] nested)
public static String toClassName(Class<?> cls)
public static String toClassNames(Collection<? extends Class<?>> classes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |