Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
enum nkeys.NKeysErrorCode
import { nkeys } from "https://deno.land/x/natsws@v1.29.2/src/nats-base-client.ts";
const { NKeysErrorCode } = nkeys;

Possible error codes on exceptions thrown by the library.

Members

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