Fix abstract for error classes