addError

fun addError(message: String)

Adds a custom error message.