Quest Global interview question

how to write custom exception