Make EntityError an interface

More flexible to use than a struct