Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
CodenameOneThread(Runnable r,
String threadName)
Constructor accepting the runnable
|
| Modifier and Type | Method and Description |
|---|---|
String |
getStack(Throwable t)
Prints the stack trace matching the given stack
|
static void |
handleException(Throwable err) |
boolean |
hasStackFrame() |
static void |
pop()
Pops the current method from the stack
|
void |
popStack()
Pops the method stack pointer
|
static void |
push(int method)
Pushes the method to the current thread stack
|
void |
pushStack(int method)
Pushes a method id into the stack
|
void |
run()
Catches exception
|
static void |
storeStack(Throwable th,
int currentStackFrame)
Stores the stack for the given exception
|
void |
storeStackForException(Throwable t,
int currentStackFrame)
Stores the stack for the given exception
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic boolean hasStackFrame()
public void pushStack(int method)
method - the method idpublic void popStack()
public static void push(int method)
method - the method idpublic static void pop()
public void storeStackForException(Throwable t, int currentStackFrame)
t - the exception mapping to the given stackpublic static void storeStack(Throwable th, int currentStackFrame)
th - the exception mapping to the given stackpublic void run()
public static void handleException(Throwable err)
Copyright © 2023. All rights reserved.