#17298 Delete SamoExeption.php. Add comments. Do small refactoring