Package com.networknt.config
Class ConfigException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.networknt.config.ConfigException
-
- All Implemented Interfaces:
Serializable
public class ConfigException extends RuntimeException
A runtime exception to indicate something is wrong in the configuration file. Most config files will be loaded during server startup in a static block and there is no way an exception can be thrown. To use a runtime exception, we can force the server startup to failed so that some action can be taken by the operation team. If the config file is laze loaded in the application during request handling phase, then this exception will cause a 500 error and most likely be handled by the exception handler in the middleware handler chain. This is a special exception that need to be monitored in logs in order to capture config issue during development phase.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConfigException(String message)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ConfigException
public ConfigException(String message)
-
-