netx.jnlp

Class LaunchException


public class LaunchException
extends Exception

Thrown when a JNLP application, applet, or installer could not be created.
Version:
$Revision: 1.9 $
Author:
Jon A. Maxwell (JAM) - initial author

Constructor Summary

LaunchException(String message)
Constructs a LaunchException with the specified detail message.
LaunchException(String message, Throwable cause)
Creates a LaunchException with a cause and detail message
LaunchException(Throwable cause)
Creates a LaunchException with a cause.
LaunchException(JNLPFile file, Exception cause, String severity, String category, String summary, String description)
Creates a LaunchException without detail message.

Method Summary

String
getCategory()
Returns the category string, a short description of the exception suitable for displaying in a window title.
Throwable
getCause()
Return the cause of the launch exception or null if there is no cause exception.
Throwable[]
getCauses()
Returns the causes for this exception.
String
getDescription()
Return a description of the exception and the action being performed when the exception occurred.
JNLPFile
getFile()
Returns the JNLPFile being launched.
String
getSeverity()
Returns a short description of the severity of the problem.
String
getSummary()
Returns a one-sentence summary of the problem.
void
printStackTrace(PrintStream stream)
Print the stack trace and the cause exception (1.3 compatible)
void
printStackTrace(PrintWriter stream)
Print the stack trace and the cause exception (1.3 compatible)

Constructor Details

LaunchException

public LaunchException(String message)
Constructs a LaunchException with the specified detail message.
Parameters:
message - the detail message

LaunchException

public LaunchException(String message,
                       Throwable cause)
Creates a LaunchException with a cause and detail message

LaunchException

public LaunchException(Throwable cause)
Creates a LaunchException with a cause.

LaunchException

public LaunchException(JNLPFile file,
                       Exception cause,
                       String severity,
                       String category,
                       String summary,
                       String description)
Creates a LaunchException without detail message.

Method Details

getCategory

public String getCategory()
Returns the category string, a short description of the exception suitable for displaying in a window title.

getCause

public Throwable getCause()
Return the cause of the launch exception or null if there is no cause exception.

getCauses

public Throwable[] getCauses()
Returns the causes for this exception. This method is useful on JRE 1.3 since getCause is not a standard method, and will be removed once netx no longer supports 1.3.

getDescription

public String getDescription()
Return a description of the exception and the action being performed when the exception occurred.

getFile

public JNLPFile getFile()
Returns the JNLPFile being launched.

getSeverity

public String getSeverity()
Returns a short description of the severity of the problem.

getSummary

public String getSummary()
Returns a one-sentence summary of the problem.

printStackTrace

public void printStackTrace(PrintStream stream)
Print the stack trace and the cause exception (1.3 compatible)

printStackTrace

public void printStackTrace(PrintWriter stream)
Print the stack trace and the cause exception (1.3 compatible)