Java Custom Exception Class Python Documentation String Methods