org.netbeans.bootstrap/1 2.52

org.netbeans
Class InvalidException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.netbeans.InvalidException
All Implemented Interfaces:
Serializable

public final class InvalidException
extends IOException

Exception thrown indicating that a module's contents are ill-formed. This could be a parse error in the manifest, or an inability to load certain resources from the classloader. ErrorManager should be used where needed to attach related exceptions or user-friendly annotations.

See Also:
Serialized Form

Constructor Summary
InvalidException(Module m, String detailMessage)
           
InvalidException(Module m, String detailMessage, String localizedMessage)
           
InvalidException(String detailMessage)
           
 
Method Summary
 String getLocalizedMessage()
           
 Manifest getManifest()
          The manifest that caused this exception.
 Module getModule()
          Affected module.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidException

public InvalidException(String detailMessage)

InvalidException

public InvalidException(Module m,
                        String detailMessage)

InvalidException

public InvalidException(Module m,
                        String detailMessage,
                        String localizedMessage)
Method Detail

getModule

public Module getModule()
Affected module. May be null if this is hard to determine (for example a problem which would make the module ill-formed, during creation or reloading).


getManifest

public Manifest getManifest()
The manifest that caused this exception. Can be null, if the manifest cannot be obtained.

Returns:
manifest that contains error
Since:
2.20

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable

org.netbeans.bootstrap/1 2.52

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.