Sweden's treason laws have seen little application in modern times. The most recent case was in 2001. Four teenagers (their names were not reported) were convicted of treason after they assaulted King Carl XVI Gustaf with a cream-cake. The ringleader was fined 100 days' income; the others were fined 80 days' income.
To understand why what Cotton did was not treason, you have.