added typed errors module
added exceptions in place of asserts for expected fields for rolling
transforms.