Skip to content

Expressionless Exception #21

@pburgmer

Description

@pburgmer

If a converter throws an exception there will be no information about the query executed or the column. Please catch and wrap the exception and give some additional information to the developer.

Caused by: java.lang.NumberFormatException: For input string: ""
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[?:1.8.0_102]
        at java.lang.Long.parseLong(Long.java:601) ~[?:1.8.0_102]
        at java.lang.Long.parseLong(Long.java:631) ~[?:1.8.0_102]
        at java.text.DigitList.getLong(DigitList.java:195) ~[?:1.8.0_102]
        at java.text.DecimalFormat.parse(DecimalFormat.java:2051) ~[?:1.8.0_102]
        at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1869) ~[?:1.8.0_102]
        at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1514) ~[?:1.8.0_102]
        at java.text.DateFormat.parse(DateFormat.java:364) ~[?:1.8.0_102]
        at com.***.server.core.database.StringToDateConverter.getValue(StringToDateConverter.java:49) ~[***-server-4.3.0-SNAPSHOT.jar:?]
        at com.w11k.lsql.converter.Converter.getValueFromResultSet(Converter.java:68) ~[lsql-core-0.23.0.jar:?]
        at com.w11k.lsql.query.AbstractQuery.extractEntity(AbstractQuery.java:252) ~[lsql-core-0.23.0.jar:?]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions