org.apache.openjpa.util
public class Exceptions extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Throwable[] |
EMPTY_THROWABLES |
Constructor and Description |
---|
Exceptions() |
Modifier and Type | Method and Description |
---|---|
static void |
printNestedThrowables(ExceptionInfo e,
java.io.PrintStream out)
Print the stack trace of the exception's nested throwables.
|
static void |
printNestedThrowables(ExceptionInfo e,
java.io.PrintWriter out)
Print the stack trace of the exception's nested throwables.
|
static java.lang.Object |
replaceFailedObject(java.lang.Object ob)
Convert the specified failed object into a serializable
object for when we are serializing an Exception.
|
static java.lang.Throwable[] |
replaceNestedThrowables(java.lang.Throwable[] nested)
Convert the specified throwables into a serialzable array.
|
static java.lang.String |
toClassName(java.lang.Class<?> cls) |
static java.lang.String |
toClassNames(java.util.Collection<? extends java.lang.Class<?>> classes) |
static java.lang.String |
toString(java.util.Collection failed)
Safely stringify the given objects.
|
static java.lang.String |
toString(ExceptionInfo e)
Stringify the given exception.
|
static java.lang.String |
toString(java.lang.Object ob)
Safely stringify the given object.
|
public static java.lang.String toString(java.lang.Object ob)
public static java.lang.String toString(java.util.Collection failed)
public static java.lang.String toString(ExceptionInfo e)
public static void printNestedThrowables(ExceptionInfo e, java.io.PrintStream out)
public static void printNestedThrowables(ExceptionInfo e, java.io.PrintWriter out)
public static java.lang.Object replaceFailedObject(java.lang.Object ob)
ob
- the object to convertpublic static java.lang.Throwable[] replaceNestedThrowables(java.lang.Throwable[] nested)
public static java.lang.String toClassName(java.lang.Class<?> cls)
public static java.lang.String toClassNames(java.util.Collection<? extends java.lang.Class<?>> classes)