added exceptions for c example