Class PackagerException

java.lang.Object
java.lang.Throwable
java.lang.Exception
jdk.jpackage.internal.model.PackagerException
All Implemented Interfaces:
Serializable

public class PackagerException extends Exception
Signals that error has occurred at packaging phase.

The preferred way to construct instances of this class is to use LocalizedExceptionBuilder.buildLocalizedException(StringBundle) methods

StringBundle i18n = getStringBundle(); // Some way to obtain a string bundle with localized messages

throw buildLocalizedException(i18n).message("error.no.name").create();
See Also: