UNPKG

@nomad-xyz/sdk

Version:
16 lines (13 loc) 437 B
import * as config from '@nomad-xyz/configuration'; import { WithContext } from '@nomad-xyz/multi-provider'; import { NomadContext } from './NomadContext'; export class NomadError<T extends NomadContext> extends WithContext< config.Domain, T > {} export class FailedHomeError<T extends NomadContext> extends NomadError<T> { constructor(context: T, msg: string) { super(context, msg); this.name = 'FailedHomeError'; } }