Skip to content

Commit

Permalink
TEIID-5540 improving the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
shawkins committed Nov 12, 2018
1 parent 8951bc4 commit 38ceaff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/main/java/org/teiid/jdbc/JDBCPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public static enum Event implements BundleUtil.Event {
TEIID20035,
TEIID20036,
TEIID20037,
TEIID20038,
TEIID20038,
TEIID20039,
}
}
2 changes: 2 additions & 0 deletions client/src/main/java/org/teiid/jdbc/LocalProfile.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public ConnectionImpl connect(String url, Properties info)
throw TeiidSQLException.create(e);
} catch (TeiidException e) {
throw TeiidSQLException.create(e);
} catch (LinkageError e) {
throw TeiidSQLException.create(e, JDBCPlugin.Util.gs(JDBCPlugin.Event.TEIID20039));
}
}

Expand Down
1 change: 1 addition & 0 deletions client/src/main/resources/org/teiid/jdbc/i18n.properties
Original file line number Diff line number Diff line change
Expand Up @@ -220,3 +220,4 @@ VirtualDatabaseVersion_desc=VDB Version
waitForLoad_desc=For a local connection the time to wait the vdb to load
partialResultsMode_desc=If partial results mode is enabled - typically used in multi-source or union queries to ignore down sources.
nullsAreSorted_desc=Set the value reported by DatabaseMetaData for null sorting, can be one of AtEnd, AtStart, High, Low
TEIID20039=Attempted to make a local / in-VM connection as no protocol was specified. However the client jar does not appear to be in a running server. You should double check your URL.

0 comments on commit 38ceaff

Please sign in to comment.