interface GenericPalletError<_> {
    is: ((moduleError:
        | {
            error: `0x${string}`;
            index: number;
        }
        | {
            type: "CannotLookup";
        }
        | {
            type: "Other";
        }
        | {
            type: "BadOrigin";
        }
        | {
            type: "Module";
            value: {
                error: `0x${string}`;
                index: number;
            };
        }
        | {
            type: "ConsumerRemaining";
        }
        | {
            type: "NoProviders";
        }
        | {
            type: "TooManyConsumers";
        }
        | {
            type: "Token";
            value:
                | "FundsUnavailable"
                | "OnlyProvider"
                | "BelowMinimum"
                | "CannotCreate"
                | "UnknownAsset"
                | "Frozen"
                | "Unsupported"
                | "CannotCreateHold"
                | "NotExpendable"
                | "Blocked";
        }
        | {
            type: "Arithmetic";
            value: "Underflow" | "Overflow" | "DivisionByZero";
        }
        | {
            type: "Transactional";
            value: "LimitReached" | "NoLayer";
        }
        | {
            type: "Exhausted";
        }
        | {
            type: "Corruption";
        }
        | {
            type: "Unavailable";
        }
        | {
            type: "RootNotAllowed";
        }) => boolean);
    meta: PalletErrorMetadataLatest;
}

Type Parameters

Properties

Properties

is: ((moduleError:
    | {
        error: `0x${string}`;
        index: number;
    }
    | {
        type: "CannotLookup";
    }
    | {
        type: "Other";
    }
    | {
        type: "BadOrigin";
    }
    | {
        type: "Module";
        value: {
            error: `0x${string}`;
            index: number;
        };
    }
    | {
        type: "ConsumerRemaining";
    }
    | {
        type: "NoProviders";
    }
    | {
        type: "TooManyConsumers";
    }
    | {
        type: "Token";
        value:
            | "FundsUnavailable"
            | "OnlyProvider"
            | "BelowMinimum"
            | "CannotCreate"
            | "UnknownAsset"
            | "Frozen"
            | "Unsupported"
            | "CannotCreateHold"
            | "NotExpendable"
            | "Blocked";
    }
    | {
        type: "Arithmetic";
        value: "Underflow" | "Overflow" | "DivisionByZero";
    }
    | {
        type: "Transactional";
        value: "LimitReached" | "NoLayer";
    }
    | {
        type: "Exhausted";
    }
    | {
        type: "Corruption";
    }
    | {
        type: "Unavailable";
    }
    | {
        type: "RootNotAllowed";
    }) => boolean)