All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fitnesse.slim.converters.DoubleConverter Maven / Gradle / Ivy

There is a newer version: 20241026
Show newest version
// Copyright (C) 2003-2009 by Object Mentor, Inc. All rights reserved.
// Released under the terms of the CPL Common Public License version 1.0.
package fitnesse.slim.converters;

import fitnesse.slim.SlimError;

public class DoubleConverter extends ConverterBase {

  @Override
  public Double getObject(String arg) {
    try {
      return Double.valueOf(arg);
    } catch (NumberFormatException e) {
      throw new SlimError(String.format("message:<>", arg), e);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy