raise exceptions in msHandler