Export exception symbols
Split task header file into exported API and detail namespace