public final class ErrorAttributeCriterion extends java.lang.Object implements ErrorCriterion
error criterion
that checks the errors
attributes
.Modifier and Type | Method and Description |
---|---|
java.lang.String |
description()
Returns a message describing the criterion.
|
boolean |
matches(io.spine.base.Error error)
Checks if target matches the criterion.
|
ErrorCriterion |
value(com.google.protobuf.Value value)
Verifies the value of the attribute under current name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withAttribute, withCode, withMessage, withoutAttribute, withType
public java.lang.String description()
description
in interface ErrorCriterion
public boolean matches(io.spine.base.Error error)
error
- an object ot checktrue
if target matches the criterion, false
otherwisepublic ErrorCriterion value(com.google.protobuf.Value value)
value
- a value that is expected by an attribute nameerror criterion
instance