@blockchaincommons/dcbor-pattern - v1.0.0-beta.2
    Preparing search index...

    Variable DcborPatternErrorCodeConst

    DcborPatternErrorCode: {
        EmptyInput: "EmptyInput";
        UnexpectedEndOfInput: "UnexpectedEndOfInput";
        ExtraData: "ExtraData";
        UnexpectedToken: "UnexpectedToken";
        UnrecognizedToken: "UnrecognizedToken";
        InvalidRegex: "InvalidRegex";
        UnterminatedRegex: "UnterminatedRegex";
        UnterminatedString: "UnterminatedString";
        InvalidRange: "InvalidRange";
        InvalidHexString: "InvalidHexString";
        UnterminatedHexString: "UnterminatedHexString";
        InvalidDateFormat: "InvalidDateFormat";
        InvalidNumberFormat: "InvalidNumberFormat";
        InvalidUr: "InvalidUr";
        ExpectedOpenParen: "ExpectedOpenParen";
        ExpectedCloseParen: "ExpectedCloseParen";
        ExpectedCloseBracket: "ExpectedCloseBracket";
        ExpectedCloseBrace: "ExpectedCloseBrace";
        ExpectedColon: "ExpectedColon";
        ExpectedPattern: "ExpectedPattern";
        UnmatchedParentheses: "UnmatchedParentheses";
        UnmatchedBraces: "UnmatchedBraces";
        InvalidCaptureGroupName: "InvalidCaptureGroupName";
        InvalidDigestPattern: "InvalidDigestPattern";
        UnterminatedDigestQuoted: "UnterminatedDigestQuoted";
        UnterminatedDateQuoted: "UnterminatedDateQuoted";
        NestingTooDeep: "NestingTooDeep";
    } = ...

    Why a pattern text was rejected.

    Type Declaration

    • ReadonlyEmptyInput: "EmptyInput"

      The source is empty.

    • ReadonlyUnexpectedEndOfInput: "UnexpectedEndOfInput"

      The source ended inside a pattern.

    • ReadonlyExtraData: "ExtraData"

      Text follows the pattern.

    • ReadonlyUnexpectedToken: "UnexpectedToken"

      A token that cannot start or continue a pattern here.

    • ReadonlyUnrecognizedToken: "UnrecognizedToken"

      Text no token starts.

    • ReadonlyInvalidRegex: "InvalidRegex"

      A regex the pattern language's dialect does not accept.

    • ReadonlyUnterminatedRegex: "UnterminatedRegex"

      A /regex/ without its closing slash.

    • ReadonlyUnterminatedString: "UnterminatedString"

      A string literal without its closing quote.

    • ReadonlyInvalidRange: "InvalidRange"

      A {n,m} range that is not one, or with n above m.

    • ReadonlyInvalidHexString: "InvalidHexString"

      An h'…' or digest'…' body that is not even-length hex.

    • ReadonlyUnterminatedHexString: "UnterminatedHexString"

      An h'…' literal without its closing quote.

    • ReadonlyInvalidDateFormat: "InvalidDateFormat"

      A date'…' body that is not a date, a range of dates, or a regex.

    • ReadonlyInvalidNumberFormat: "InvalidNumberFormat"

      A number literal dCBOR does not read; the lexer's number grammar leaves no such literal, so it is declared and never raised.

    • ReadonlyInvalidUr: "InvalidUr"

      A digest'ur:…' body the UR decoder rejects.

    • ReadonlyExpectedOpenParen: "ExpectedOpenParen"

      Declared for the reference's taxonomy; never raised.

    • ReadonlyExpectedCloseParen: "ExpectedCloseParen"

      The source ended inside a capture, a search(…) or a tagged(…).

    • ReadonlyExpectedCloseBracket: "ExpectedCloseBracket"

      The source ended inside […].

    • ReadonlyExpectedCloseBrace: "ExpectedCloseBrace"

      The source ended inside {…} after a key's value or a length.

    • ReadonlyExpectedColon: "ExpectedColon"

      The source ended after a map key.

    • ReadonlyExpectedPattern: "ExpectedPattern"

      Declared for the reference's taxonomy; never raised.

    • ReadonlyUnmatchedParentheses: "UnmatchedParentheses"

      Declared for the reference's taxonomy; never raised.

    • ReadonlyUnmatchedBraces: "UnmatchedBraces"

      Declared for the reference's taxonomy; never raised.

    • ReadonlyInvalidCaptureGroupName: "InvalidCaptureGroupName"

      Declared for the reference's taxonomy; never raised (@ without a name is UnrecognizedToken).

    • ReadonlyInvalidDigestPattern: "InvalidDigestPattern"

      A digest'…' body that is neither a UR, a regex nor a hex prefix.

    • ReadonlyUnterminatedDigestQuoted: "UnterminatedDigestQuoted"

      A digest'…' literal without its closing quote.

    • ReadonlyUnterminatedDateQuoted: "UnterminatedDateQuoted"

      A date'…' literal without its closing quote.

    • ReadonlyNestingTooDeep: "NestingTooDeep"

      Nesting deeper than ParseOptions.maxDepth, when a limit is set; this package's own option.