created a function for holding z3950 exceptions