now wrap error in ValidationError class