* @throws InvalidDataException
*/
public static long invertNumber(long input) throws InvalidDataException {
long result = 0;
if (input == 0) {
throw new InvalidDataException("A value of 0 cannot be inverted");
}
if (input > 0) {
String temp = "-" + String.valueOf(input);
result = Long.parseLong(temp);
} else {