stuck trying to throw a custom exception type