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