Moved error classes to their own namespace