FileDocCategorySizeDatePackage
IsolateStartupException.javaAPI DocphoneME MR2 API (J2ME)4469Wed May 02 17:59:54 BST 2007com.sun.cldc.isolate

IsolateStartupException

public class IsolateStartupException extends Exception
An exception thrown when the implementation is unable to start execution of a new isolate due to an error or exceptional condition in the bootstrap code for the new isolate (i.e., before the application starts). Generally, this exception implies the new isolate was misconfigured, and the misconfiguration was detected when the isolate was initializing (either during the {@linkplain Isolate#Isolate constructor call} or {@link Isolate#start Isolate.start invocation}). If the underlying misconfiguration resulted in an exception in the new isolate, the accessors for the remote exception information will provide the details. If not, those methods will all return null.

Any errors or exceptions thrown by application code in the new isolate will be handled by the default {@link ThreadGroup#uncaughtException ThreadGroup.uncaughtException} and will not manifest as an IsolateStartupException in the creating isolate.

Because any nested exception occurred in a remote isolate, the exception cannot be directly {@linkplain java.lang.Throwable#initCause chained} (for example, the exception type may be available in the creator). However, the information about the remote exception is available from the {@link #getRemoteName}, {@link #getRemoteMessage} methods.

The detail message in an IsolateStartupException will be the toString string of the original exception in the remote isolate, if available. The backtrace associated with an IsolateStartupException will be from the current thread's stack.

see
Isolate#Isolate
see
Isolate#start

Fields Summary
Constructors Summary
public IsolateStartupException()
Constructs an IsolateStartupException with no specified detail message and null remote exception information.

  
public IsolateStartupException(String detail)
Constructs an IsolateStartupException with specified detail message and null remote exception information.

    super(detail);
  
Methods Summary
public java.lang.StringgetRemoteMessage()
Returns the detail message string for the remote exception (which may be null even if a remote exception occured).

see
#getRemoteName
return
the detail message string for the remote exception.

    return null;
  
public java.lang.StringgetRemoteName()
Returns either the name of the exception type of the remote exception or null if there was no reportable remote Java exception.

return
the name of the exception type of the remote exception

    return null;
  
public voidprintRemoteStackTrace()

  
public voidprintRemoteStackTrace(java.io.PrintStream ps)
Prints the remote exception like {@link #printRemoteStackTrace()} to the given PrintStream. If no exception information is available, nothing will be printed.