ENT-1837 better error message on db failure (#3318)

This commit is contained in:
Tudor Malene
2018-06-07 14:05:28 +01:00
committed by GitHub
parent aa01ef638b
commit c474c04503
3 changed files with 26 additions and 5 deletions

View File

@ -264,4 +264,6 @@ private fun Throwable.hasSQLExceptionCause(): Boolean =
null -> false
is SQLException -> true
else -> cause?.hasSQLExceptionCause() ?: false
}
}
class CouldNotCreateDataSourceException(override val message: String?, override val cause: Throwable? = null) : Exception()