save exception type