rethrowErrors

@JvmName(name = "rethrowErrorsNotNull")
fun Throwable.rethrowErrors(): Exception

If this is an Error, throws it, otherwise returns this as an Exception