public static void bodyContainsIllegalCode ( Method method , Exception additionalInformation ) { Class < ? > clazz = method . getClazz ( ) ; if ( isNull ( clazz ) ) clazz = JMapper . class ; String originalName = method . getOriginalName ( ) ; if ( isNull ( originalName ) ) originalName = method . getName ( ) ; String message = clazz != JMapper . class ? MSG . INSTANCE . message ( conversionBodyIllegalCode , clazz . getSimpleName ( ) , originalName , "" + additionalInformation . getMessage ( ) ) : MSG . INSTANCE . message ( conversionBodyIllegalCode2 , "" + additionalInformation . getMessage ( ) ) ; throw new ConversionBodyIllegalCodeException ( message ) ; }
Thrown when the code contained in the body method is illegal .