Added throw exception when callback function not exists.