@ SuppressWarnings ( "WeakerAccess" ) public void register ( int errorCode , Class clazz , ExceptionFactory exceptionFactory ) { if ( intToFactory . containsKey ( errorCode ) ) { throw new HazelcastException ( "Code " + errorCode + " already used" ) ; } if ( ! clazz . equals ( exceptionFactory . createException ( "" , null ) . getClass ( ) ) ) { throw new HazelcastException ( "Exception factory did not produce an instance of expected class" ) ; } intToFactory . put ( errorCode , exceptionFactory ) ; }
method is used by Jet