[AESH-85]
use longName if it exists when throwing exception