Fix improper usage of Salt exception classes

Also fixed some string formatting and use of quoted string instead of
raw strings.
Merge pull request #8284 from terminalmage/exceptions-fix

Fix improper usage of Salt exception classes