Change the Exception's title from exception message to exception class.

This change can enable clients to rely on the Exception's class instead of
its message (which can be locale dependent). This enforces proper
Interface Segregation.