Skip to content

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

@sengmann

Description

@sengmann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions