skipcheck

TM1 client · Docs · Errors

Rule

from skipcheck_tm1.errors import 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

status
codeA rule matching an error code.
messageA rule matching a message pattern, case-insensitively.
kind
of_message staticMatches TM1's message, case-insensitively (Java's Rule.message).
of_code staticMatches TM1's error code (Java's Rule.code).
matchesWhether the rule matches an error response.

status

status: int | None

code

code: str | None

A rule matching an error code.

message

message: re.Pattern[str] | None

A rule matching a message pattern, case-insensitively.

kind

kind: Tm1ErrorKind

of_message

static
of_message(regex: str, kind: Tm1ErrorKind) -> Rule

Matches TM1's message, case-insensitively (Java's Rule.message).

of_code

static
of_code(code: str, kind: Tm1ErrorKind) -> Rule

Matches TM1's error code (Java's Rule.code).

matches

matches(status: int, error: ODataError | None) -> bool

Whether the rule matches an error response: each condition that's set must match, the status, the code exactly, and the message pattern (ignoring case, anywhere in the message).