Enhance sparkException class.