skipcheck

TM1 client · Docs · Errors

Tm1ErrorClassifier.Rule

import io.skipcheck.tm1.client.error.Tm1ErrorClassifier.Rule;

One classification rule. Each condition that's set must match: the status if not null, the code exactly, and the message pattern (case-insensitive, anywhere in the message).

Members

Rule constructorChecks that the rule has a kind and at least one condition.
message staticA rule matching a message pattern, case-insensitively.
code staticA rule matching an error code.
toString
hashCode
equals
status
code
message
kind

Rule

constructor
Rule(Integer status, String code, Pattern message, Tm1ErrorKind kind)

Checks that the rule has a kind and at least one condition.

message

static
static Tm1ErrorClassifier.Rule message(String regex, Tm1ErrorKind kind)

A rule matching a message pattern, case-insensitively.

Parameters

regex
the pattern to find anywhere in the message
kind
the kind to report on a match

Returns

the rule

code

static
static Tm1ErrorClassifier.Rule code(String code, Tm1ErrorKind kind)

A rule matching an error code.

Parameters

code
the error code to match exactly, such as "248"
kind
the kind to report on a match

Returns

the rule

toString

String toString()

hashCode

int hashCode()

equals

boolean equals(Object o)

status

Integer status()

code

String code()

message

Pattern message()

kind

Tm1ErrorKind kind()

Also in the Javadoc.