Add exception & Apply to Example & tweak PacketType.h
add pragma comment at header
remove example_without_errorcheck.cpp