public ClassNotFoundException toClassNotFoundException ( ) { ClassDescriptor classDescriptor = DescriptorFactory . createClassDescriptorFromResourceName ( resourceName ) ; return new ClassNotFoundException ( "ResourceNotFoundException while looking for class " + classDescriptor . toDottedClassName ( ) + ": " + getMessage ( ) ) ; }
Convert this exception to a ClassNotFoundException . This method should only be called if the ResourceNotFoundException occurs while looking for a class . The message format is parseable by ClassNotFoundExceptionParser .