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

[lsql-cli] Missing converter leads to incomplete error message #38

Open
sengmann opened this issue Jan 9, 2019 · 0 comments
Open

[lsql-cli] Missing converter leads to incomplete error message #38

sengmann opened this issue Jan 9, 2019 · 0 comments

Comments

@sengmann
Copy link
Member

sengmann commented Jan 9, 2019

When a converter is missing in the used configuration, the error message does not show the table name and column which causes the error. Here a stack trace of my actual error

Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalArgumentException: No converter for SQL type 'TIME'. 
	at com.w11k.lsql.cli.java.JavaExporter.fetchMetaDataForAllTables(JavaExporter.java:62)
	at com.w11k.lsql.cli.java.JavaExporter.<init>(JavaExporter.java:39)
	at com.w11k.lsql.cli.Main.<init>(Main.java:55)
	at com.w11k.lsql.cli.Main.main(Main.java:80)
Caused by: java.lang.IllegalArgumentException: No converter for SQL type 'TIME'. 
	at com.w11k.lsql.converter.ConverterRegistry.getConverterForSqlType(ConverterRegistry.java:24)
	at com.w11k.lsql.LSql.getConverterForSqlType(LSql.java:302)
	at com.w11k.lsql.LSql.getConverterForTableColumn(LSql.java:352)
	at com.w11k.lsql.Table.fetchMeta(Table.java:597)
	at com.w11k.lsql.Table.<init>(Table.java:51)
	at com.w11k.lsql.LSql.tableBySqlName(LSql.java:183)
	at com.w11k.lsql.cli.java.JavaExporter.fetchMetaDataForAllTables(JavaExporter.java:59)
	... 3 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant