Create a wrapper exception for UnexpectedElementException