MultiError Class — supabase Architecture
Architecture documentation for the MultiError class in utils.ts from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/docs/app/api/utils.ts lines 77–95
export class MultiError<ErrorType = unknown, Details extends ObjectOrNever = never> extends Error {
constructor(
message: string,
cause?: Array<ErrorType>,
public details?: Details
) {
super(message, { cause })
}
get totalErrors(): number {
return (this.cause as Array<ErrorType>)?.length || 0
}
appendError(message: string, error: ErrorType): this {
this.message = `${this.message}\n\t${message}`
;((this.cause ??= []) as Array<ErrorType>).push(error)
return this
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free