Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

nkeys.NKeysErrorCode

import { nkeys } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts"; 

const { NKeysErrorCode } = nkeys;

Possible error codes on exceptions thrown by the library.

enum NKeysErrorCode {
InvalidPrefixByte = "nkeys: invalid prefix byte",
InvalidKey = "nkeys: invalid key",
InvalidPublicKey = "nkeys: invalid public key",
InvalidSeedLen = "nkeys: invalid seed length",
InvalidSeed = "nkeys: invalid seed",
InvalidEncoding = "nkeys: invalid encoded key",
InvalidSignature = "nkeys: signature verification failed",
CannotSign = "nkeys: cannot sign, no private key available",
PublicKeyOnly = "nkeys: no seed or private key available",
InvalidChecksum = "nkeys: invalid checksum",
SerializationError = "nkeys: serialization error",
ApiError = "nkeys: api error",
ClearedPair = "nkeys: pair is cleared",
}

§Members

§
NKeysErrorCode.ApiError = "nkeys: api error"
[src]
§
NKeysErrorCode.CannotSign = "nkeys: cannot sign, no private key available"
[src]
§
NKeysErrorCode.ClearedPair = "nkeys: pair is cleared"
[src]
§
NKeysErrorCode.InvalidChecksum = "nkeys: invalid checksum"
[src]
§
NKeysErrorCode.InvalidEncoding = "nkeys: invalid encoded key"
[src]
§
NKeysErrorCode.InvalidKey = "nkeys: invalid key"
[src]
§
NKeysErrorCode.InvalidPrefixByte = "nkeys: invalid prefix byte"
[src]
§
NKeysErrorCode.InvalidPublicKey = "nkeys: invalid public key"
[src]
§
NKeysErrorCode.InvalidSeed = "nkeys: invalid seed"
[src]
§
NKeysErrorCode.InvalidSeedLen = "nkeys: invalid seed length"
[src]
§
NKeysErrorCode.InvalidSignature = "nkeys: signature verification failed"
[src]
§
NKeysErrorCode.PublicKeyOnly = "nkeys: no seed or private key available"
[src]
§
NKeysErrorCode.SerializationError = "nkeys: serialization error"
[src]