Add an Error variant for the base type and return Errors from functions
Add an Error variant for the base type and return Errors from functions