documented error() method of Validation

Add a document of error() method of Validation