refactoring
use xerces-c: exception