public static void setConfigException ( Throwable e ) { ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; for ( ; loader != null ; loader = loader . getParent ( ) ) { if ( loader instanceof EnvironmentClassLoader ) { EnvironmentClassLoader envLoader = ( EnvironmentClassLoader ) loader ; envLoader . setConfigException ( e ) ; return ; } } }
Sets a configuration exception .