A judge who wrongly jailed a man during divorce proceedings is set to learn from the nation's top court whether he'll bear liability for his error.