Refactored exception classes from xmlprocessor to common.