epoxy-processor / com.airbnb.epoxy / ErrorLogger

ErrorLogger

class ErrorLogger

Constructors

<init>

ErrorLogger()

Functions

logError

fun logError(msg: String, vararg args: Any): Unit

Errors logged with this should describe exactly what is wrong. These won't show the stacktrace in the error output to reduce confusion.

fun logError(e: Exception, message: String = ""): Unit

Errors are logged and saved until after classes are generating. Otherwise if we throw immediately the models are not generated which leads to lots of other compiler errors which mask the actual issues.

logErrors

fun logErrors(exceptions: List<Exception>): Unit

logWarning

fun logWarning(msg: String): Unit

writeExceptions

fun writeExceptions(messager: Messager): Unit