add AssertThrow to throw exception

Signed-off-by: xiehuc <xiehuc@gmail.com>