Example usage for java.lang NumberFormatException getLocalizedMessage

List of usage examples for java.lang NumberFormatException getLocalizedMessage

Introduction

In this page you can find the example usage for java.lang NumberFormatException getLocalizedMessage.

Prototype

public String getLocalizedMessage() 

Source Link

Document

Creates a localized description of this throwable.

Usage

From source file:org.openestate.io.is24_csv.records.Anlageobjekt.java

public BigDecimal getEnergieausweisKennwert() {
    try {//w  w w.j av a2s  .  c  o m
        return Is24CsvFormat.parseDecimal(this.get(FIELD_ENERGIEAUSWEIS_KENNWERT));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read 'Energieausweis-Kennwert'!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
        return null;
    }
}

From source file:org.openestate.io.is24_csv.records.Anlageobjekt.java

public BigDecimal getNichtUmgelegteKosten() {
    try {/*from w  ww.  ja  v a2 s.  c om*/
        return Is24CsvFormat.parseDecimal(this.get(FIELD_NICHT_UMGELEGTE_KOSTEN));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read 'nicht umgelegte eKosten'!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
        return null;
    }
}

From source file:org.openestate.io.is24_csv.records.WohnenAufZeit.java

public Integer getAnzahlPersonen() {
    try {//from w  w w  .j  av  a  2  s  .co m
        return Is24CsvFormat.parseInteger(this.get(FIELD_ANZAHL_PERSONEN));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read 'Anzahl Personen'!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
        return null;
    }
}

From source file:org.openestate.io.is24_csv.records.WohnenAufZeit.java

public BigDecimal getMietdauerMaximum() {
    try {//  w  w w  .  ja  v a2  s . com
        return Is24CsvFormat.parseDecimal(this.get(FIELD_MIETDAUER_MAXIMUM));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read 'Maximalmietdauer'!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
        return null;
    }
}

From source file:org.openestate.io.is24_csv.records.WohnenAufZeit.java

public BigDecimal getMietdauerMinimum() {
    try {//  w w w.  j a  v a 2  s  .co m
        return Is24CsvFormat.parseDecimal(this.get(FIELD_MIETDAUER_MINIMUM));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read 'Mindestmietdauer'!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
        return null;
    }
}

From source file:org.openestate.io.is24_csv.records.Anlageobjekt.java

public Integer getFahrtwegHauptbahnhof() {
    try {//from w ww  . j  a  v a  2 s  . co m
        return Is24CsvFormat.parseInteger(this.get(FIELD_FAHRTWEG_HAUPTBAHNHOF));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read 'Fahrtweg zum Hauptbahnhof'!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
        return null;
    }
}

From source file:org.pentaho.di.trans.steps.mailinput.MailInput.java

private Integer parseIntWithSubstitute(String toParse) {
    toParse = environmentSubstitute(toParse);
    if (!StringUtils.isEmpty(toParse)) {
        try {//  www.  j  a v a  2  s . c o m
            return Integer.parseInt(toParse);
        } catch (NumberFormatException e) {
            log.logError(e.getLocalizedMessage());
        }
    }
    return null;
}

From source file:org.openestate.io.is24_csv.records.GewerbeBueroPraxis.java

public BigDecimal getKaltmiete() {
    try {//from w ww.java  2s  .  c om
        return Is24CsvFormat.parseDecimal(this.get(FIELD_KALTMIETE));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read 'Kaltmiete'!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
        return null;
    }
}

From source file:org.openestate.io.is24_csv.records.GewerbeBueroPraxis.java

public BigDecimal getTeilbarAb() {
    try {//from   w w w  . j a v a2  s .c o  m
        return Is24CsvFormat.parseDecimal(this.get(FIELD_TEILBAR_AB));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read 'teilbar ab'!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
        return null;
    }
}

From source file:org.openestate.io.is24_csv.records.GewerbeBueroPraxis.java

public BigDecimal getNebenkosten() {
    try {//  www  . ja va 2 s.  c  o m
        return Is24CsvFormat.parseDecimal(this.get(FIELD_NEBENKOSTEN));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read 'Nebenkosten'!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
        return null;
    }
}