Use the exceptiontype in viewercontroller