IcedTea-Web
NetX

net.sourceforge.jnlp
Class LaunchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sourceforge.jnlp.LaunchException
All Implemented Interfaces:
java.io.Serializable

public class LaunchException
extends java.lang.Exception

Thrown when a JNLP application, applet, or installer could not be created.

See Also:
Serialized Form

Constructor Summary
LaunchException(JNLPFile file, java.lang.Exception cause, java.lang.String severity, java.lang.String category, java.lang.String summary, java.lang.String description)
          Creates a LaunchException without detail message.
LaunchException(java.lang.String message)
          Constructs a LaunchException with the specified detail message.
LaunchException(java.lang.String message, java.lang.Throwable cause)
          Creates a LaunchException with a cause and detail message
LaunchException(java.lang.Throwable cause)
          Creates a LaunchException with a cause.
 
Method Summary
 java.lang.String getCategory()
          Returns the category string, a short description of the exception suitable for displaying in a window title.
 java.lang.Throwable getCause()
          Return the cause of the launch exception or null if there is no cause exception.
 java.lang.Throwable[] getCauses()
          Returns the causes for this exception.
 java.lang.String getDescription()
          Return a description of the exception and the action being performed when the exception occurred.
 JNLPFile getFile()
          Returns the JNLPFile being launched.
 java.lang.String getSeverity()
          Returns a short description of the severity of the problem.
 java.lang.String getSummary()
          Returns a one-sentence summary of the problem.
 void printStackTrace(java.io.PrintStream stream)
          Print the stack trace and the cause exception (1.3 compatible)
 void printStackTrace(java.io.PrintWriter stream)
          Print the stack trace and the cause exception (1.3 compatible)
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LaunchException

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


LaunchException

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


LaunchException

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


LaunchException

public LaunchException(java.lang.String message)
Constructs a LaunchException with the specified detail message.

Parameters:
message - the detail message
Method Detail

getFile

public JNLPFile getFile()
Returns the JNLPFile being launched.


getCategory

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


getSummary

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


getDescription

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


getSeverity

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


getCause

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

Overrides:
getCause in class java.lang.Throwable

getCauses

public java.lang.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.


printStackTrace

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

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

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

Overrides:
printStackTrace in class java.lang.Throwable

IcedTea-Web
NetX

Submit a bug or feature