ErrorMap

class ErrorMap(size: Int)

Functions

Link copied to clipboard
fun addError(key: String, msg: String)

Appends an error to this ErrorMap.

Link copied to clipboard
fun hasErrors(): Boolean

Tests whether this ErrorMap contains any errors.

Link copied to clipboard
fun incompatible(field: BlastField, vararg others: BlastField)

Tests flags that are incompatible with one another and appends errors for both incompatible flags when an entry in others has a non-default value.

Link copied to clipboard
fun requires(field1: BlastField, field2: BlastField)

Tests a flag that requires another flag to ensure that either the first field is its default value, otherwise both fields are non-default.

Link copied to clipboard
fun toJson(): ObjectNode
Link copied to clipboard
fun toMap(): Map<String, List<String>>

Extracts a Java Map of errors from this ErrorMap.