Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expressionless Exception #21

Open
pburgmer opened this issue Oct 4, 2017 · 0 comments
Open

Expressionless Exception #21

pburgmer opened this issue Oct 4, 2017 · 0 comments
Labels

Comments

@pburgmer
Copy link
Collaborator

pburgmer commented Oct 4, 2017

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:?]
@romanroe romanroe added the bug label Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants