budibase/packages/server/src/utilities/rowProcessor/errors.ts

8 lines
240 B
TypeScript

import { BBReferenceFieldSubType } from "@budibase/types"
export class InvalidBBRefError extends Error {
constructor(id: string, subtype: BBReferenceFieldSubType) {
super(`Id "${id}" is not valid for the subtype "${subtype}"`)
}
}