|
|
|
@ -1830,7 +1830,11 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
|
|
|
|
String errorMessage = buf.toString(); |
|
|
|
|
|
|
|
|
|
if (createError != null) { |
|
|
|
|
if (createError instanceof SQLException) { |
|
|
|
|
throw (SQLException)createError; |
|
|
|
|
} else { |
|
|
|
|
throw new GetConnectionTimeoutException(errorMessage, createError); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
throw new GetConnectionTimeoutException(errorMessage); |
|
|
|
|
} |
|
|
|
|