Exception class used when a string is specified