Added error handling raising to session graph if it does not match specifications