However, the charge of raping Ms Robertson was dropped.
He has been sentenced to three-and-half years in prison.
Ms Robertson accused Mr Craik, who is also a sheriff, of treating her more like a criminal than a victim after he instructed her to be held at St Leonard's police station in Edinburgh overnight.
She said: "The judge turned round and said 'well maybe a night in the cells will calm you down'.
"It was just totally out of line and then I was escorted from the witness box and then I was arrested by the police."
She added: "The man's totally out of line. Absolutely appalling.
"And if that's the way that he's going to treat future victims then his reaction is going to stop people coming forward."
Ms Robertson's complaints against Sheriff Craik is being considered by Scotland's most senior judge.
Figures show that of the 922 allegations of rape in Scotland last year, only 27 resulted in convictions.
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.
Bookmark with:
What are these?