added exception api class
fix