# Variable SkillLoaderErrorSchema`Const`

SkillLoaderErrorSchema: ZodObject<
{
code: ZodEnum<
{
VALIDATION_ERROR: "VALIDATION_ERROR";
ROLE_NOT_MAPPED: "ROLE_NOT_MAPPED";
REQUIRED_CATEGORY_MISSING: "REQUIRED_CATEGORY_MISSING";
RBAC_DENIED: "RBAC_DENIED";
DEPENDENCY_ERROR: "DEPENDENCY_ERROR";
EMPTY_RESULT: "EMPTY_RESULT";
},
>;
message: ZodString;
context: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
},
$strip,
> = ...

Zod schema for SkillLoaderError.

- Defined in packages/nexus-agents/src/agents/skills/skill-loader-types.ts:264