throw InvalidArgumentException instead of using LogUtil inside API
methods