model throw exception