public static void rethrow ( final String message , final Exception reason ) { if ( reason == null ) { throw new IllegalArgumentException ( ) ; } Loggers . ROOT_LOGGER . error ( message == null ? reason . getMessage ( ) : message , reason ) ; throw new InjectionException ( message , reason ) ; }
Rethrows Injection exception that will wrap passed reason .