ErrorCodes() — supabase Function Reference
Architecture documentation for the ErrorCodes() function in ErrorCodes.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/docs/features/ui/ErrorCodes.tsx lines 16–59
export function ErrorCodes({ service }: ErrorCodesProps) {
const errorCodes = errorCodesByService[service]
const hasResolutions = Object.values(errorCodes).some((code) => code.resolution)
return (
<Table>
<TableHeader>
<TableRow>
<TableHead>Error code</TableHead>
<TableHead>Description</TableHead>
{hasResolutions && <TableHead>Action</TableHead>}
</TableRow>
</TableHeader>
<TableBody>
{Object.entries(errorCodes)
.sort(([aCode], [bCode]) => aCode.localeCompare(bCode))
.map(([code, definition]) => (
<TableRow key={code}>
<TableCell>
<code className="whitespace-nowrap">{code}</code>
</TableCell>
<TableCell>
<p>{definition.description}</p>
{!!definition.references && (
<>
<p>Learn more:</p>
<ul>
{definition.references.map((reference) => (
<li key={reference.href}>
<Link href={reference.href}>{reference.description}</Link>
</li>
))}
</ul>
</>
)}
</TableCell>
{hasResolutions && (
<TableCell>{!!definition.resolution && <p>{definition.resolution}</p>}</TableCell>
)}
</TableRow>
))}
</TableBody>
</Table>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free