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

ServiceError

import { ServiceError } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts";
class ServiceError extends Error {
constructor(code: number, message: string);
code: number;
 
static isServiceError(msg: Msg): boolean;
static toServiceError(msg: Msg): ServiceError | null;
}

§Extends

§
Error
[src]

§Constructors

§
new ServiceError(code: number, message: string)
[src]

§Properties

§
code: number
[src]

§Static Methods

§
isServiceError(msg: Msg): boolean
[src]
§
toServiceError(msg: Msg): ServiceError | null
[src]