Supreme Court nominee Neil Gorsuch criticized Tuesday President Donald Trump's attacks on the federal judge who blocked his administration's travel ban, saying for the first time publicly that he found them "disheartening" and "demoralizing."

Gorsuch previously made those comments in private conversations with senators, but Tuesday marked the first time he went on the record with his disapproval of the president's rhetoric when he called US District Judge James L. Robart a "so-called judge."

"When anyone criticizes the honesty, integrity, the motives of a federal judge, I find that disheartening, I find that demoralizing, because I know the truth," he said during his Senate confirmation hearing, in response to a question about the tweets from Sen. Richard Blumenthal.

Asked by the Connecticut Democrat if that "anyone" included the President.

"Anyone is anyone," Gorsuch said.

Blumenthal pressed Gorsuch on the President's tweets, including one in which he called a federal judge who ruled against his travel ban last month a "so-called judge."

Asked how he would feel if the President called him the same thing, Gorsuch declined to talk about "specific cases or contributes that might come before me" but spoke about criticism that judges getting criticized in general.

"Judges have to be tough. We get called lots of names, all over the place. we have to accept criticism with some humility. makes us stronger and better," he said.

Gorsuch argued that the First Amendment and right to free speech applies to the president, as well, but said he empathizes with judges because he knows "how hard their job is."

"I know these people," he said, before going on to repeat this "demoralizing" and "disheartening" comments.