Define old-style exceptions for backwards compatibility