Added ScanningException and its use
refs #673
Merge branch 'master' of ssh://git.braintech.pl/pisak