Package com.farmerdev.katas.stringcalculator.exceptions

Examples of com.farmerdev.katas.stringcalculator.exceptions.NumberException


  }

  private void checkNegativeNumbers(String stringToParse) {
    if(stringToParse.contains("-")){
      String message = composeErrorMessage(stringToParse);
      throw new NumberException("Negative numbers are not allowed ["+message+"]");
    }
  }
View Full Code Here

TOP

Related Classes of com.farmerdev.katas.stringcalculator.exceptions.NumberException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.