Fix improper usage of Salt exception classes

Also fixed some string formatting and use of quoted string instead of
raw strings.