fixing the throw of custom exception, tc052