not sure if I like this, but double-declare all the error classes