Custom error for TPO.

Starting with custom error for json interactions. Should add logging capability.

Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>