org.netbeans
Class InvalidException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
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
InvalidException
public InvalidException(String detailMessage)
InvalidException
public InvalidException(Module m,
String detailMessage)
InvalidException
public InvalidException(Module m,
String detailMessage,
String localizedMessage)
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