Consolidate error handling functions.
Consolidate error handling functions.

LouisFettet/DIM,delphiactual/DIM,chrisfried/DIM,chrisfried/DIM,LouisFettet/DIM,bhollis/DIM,48klocs/DIM,delphiactual/DIM,DestinyItemManager/DIM,bhollis/DIM,bhollis/DIM,delphiactual/DIM,chrisfried/DIM,DestinyItemManager/DIM,bhollis/DIM,48klocs/DIM,48klocs/DIM,DestinyItemManager/DIM,chrisfried/DIM,DestinyItemManager/DIM,delphiactual/DIM