Serialize the error if there is no exception.
Javadoc
DAO tests