UNPKG

@metamask/kernel-errors

Version:
11 lines 345 B
import { BaseError } from "../BaseError.mjs"; /** * Type guard to check if an error is a custom Ocap error (BaseError). * * @param error - The error to check. * @returns `true` if the error is an instance of BaseError. */ export function isOcapError(error) { return error instanceof BaseError; } //# sourceMappingURL=isOcapError.mjs.map