Class ConfigException

All Implemented Interfaces:
Serializable

public class ConfigException extends JPackageException
Signals that error has occurred at configuration phase.

It contains an error message and an optional advice message on how to correct the error.

The preferred way to construct instances of this class is to use build(StringBundle), or build(StringBundle, Throwable), or build(StringBundle, String, Object...) methods.

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

throw ConfigException.build(i18n)
        .message("error.no.name")
        .advice("error.no.name.advice")
        .create();
See Also: