skipcheck

TM1 client · Docs · Errors

Tm1ErrorClassifier.Rule

using Skipcheck.Tm1.Client.Errors;

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 constructorA rule.
Status propertyThe HTTP status to match, or null for any.
CodeValue propertyThe error code to match exactly, or null for any.
MessagePattern propertyThe pattern to find in the message, or null for any.
Kind propertyThe kind to report on a match.
Message staticMatches TM1's message, case-insensitively.
Code staticMatches TM1's error code.

Rule

constructor
Rule(int? status, string? code, Regex? message, Tm1ErrorKind kind)

A rule. Each condition that's set must match: the status, the code exactly, and the message pattern anywhere in the message.

Parameters

status
The HTTP status to match, or null for any.
code
The error code to match, or null for any.
message
A pattern to find in the message, or null for any.
kind
The kind to report on a match.

Throws

ArgumentException
No condition is set.

Status

property
int? Status

The HTTP status to match, or null for any.

CodeValue

property
string? CodeValue

The error code to match exactly, or null for any.

MessagePattern

property
Regex? MessagePattern

The pattern to find in the message, or null for any.

Kind

property
Tm1ErrorKind Kind

The kind to report on a match.

Message

static
Rule Message(string regex, Tm1ErrorKind kind)

Matches TM1's message, case-insensitively.

Code

static
Rule Code(string code, Tm1ErrorKind kind)

Matches TM1's error code.