Fix regression on unused method of HpsException.