mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
8 lines
332 B
TypeScript
8 lines
332 B
TypeScript
import { BaseError } from '@/errors/base'
|
|
import { ErrorCode } from '@/errors/codes'
|
|
|
|
/** Every rejection of caller-supplied operation input, from load through request building. */
|
|
export function inputInvalid(message: string, cause?: unknown): BaseError {
|
|
return new BaseError({ code: ErrorCode.InputInvalid, message, cause })
|
|
}
|