fixing snippet for create exception class