create proper Error in catch method