A shim module for wrapping error in a more elegant way