public class JCUtils
extends java.lang.Object
| Constructor and Description |
|---|
JCUtils() |
| Modifier and Type | Method and Description |
|---|---|
static JLIException |
createException(JCException e)
Convert a JCException to a JLIException
|
static JLIException |
createException(JCException e,
java.lang.String msg)
Convert a JCException to a JLIException, with a message
|
static int[] |
intListToArray(java.util.List<java.lang.Integer> ids)
Convert an integer collection to an int array so that the array can be passed to a native function.
|
static java.lang.String |
ptcError(JCException e,
java.lang.String msg)
Return appropriate error text for a JCException
|
static java.lang.String |
toolkitError(JCToolkitException e,
java.lang.String msg)
Return appropriate error text for a JCToolkitException
|
public static JLIException createException(JCException e)
e - The underlying exceptionpublic static JLIException createException(JCException e, java.lang.String msg)
e - The underlying exceptionmsg - Text for the errorpublic static java.lang.String ptcError(JCException e, java.lang.String msg)
e - The exception to parsemsg - Additional text to include in the error textpublic static java.lang.String toolkitError(JCToolkitException e, java.lang.String msg)
e - The exception to parsemsg - Additional text to include in the error textpublic static int[] intListToArray(java.util.List<java.lang.Integer> ids)
ids - The input list of integer IDs