Example for programmingly examine the error