redefining error classes