Moved common exception class.