Add abstract wrapper class

Also add error object to wrappers