matt tighe
04/17/2019, 7:05 PMfun reportError(errorState: ErrorState) {
val type = object : Exception {
type.className = errorState.className
}
silentlyReportException(type)
handleDifferentErrorStates(errorState)
}
Pavlo Liapota
04/17/2019, 7:13 PMtype.className
?
Do you want to create instance of a class by a class name?matt tighe
04/17/2019, 7:23 PMException
in order to use the logging tool i’m using. rather than create a bunch of classes subtyping exception, i’d like to create them dynamically using the name of another classrook
04/17/2019, 10:20 PMException
that takes a class type argument and then switch off of thatPavlo Liapota
04/18/2019, 6:44 AMException
?