change exception to a DOM\Exception to not depend on Psc