Code example for IllegalStateException

0
	 
	public static ExceptionResolver getExceptionResolver(String platform) throws IllegalStateException {
		if (".net".equals(platform)) {
			return new ExceptionResolverDotNet(); 
		} else { 
			throw new IllegalStateException("Unknown platform");
		} 
	} 
} 
Experience pair programming with AI  Get Codota for Java