You use Error only to store messages - it does not look too usefull. I can understand it if you reuse AssertionError, but for now it is just useless wrapper around string.