Use of exceptions factory method