1use anchor_lang::prelude::*;
2
3#[error_code]
4pub enum ErrorCode {
5 #[msg("Resume can only be uploaded once every 45 days")]
6 ResumeUploadTooSoon,
7 #[msg("Interview can only be attempted once every 90 days")]
8 InterviewTooSoon,
9 #[msg("User is permanently banned")]
10 UserPermanentlyBanned,
11 #[msg("User is temporarily banned")]
12 UserTemporarilyBanned,
13 #[msg("Invalid ZK proof")]
14 InvalidProof,
15 #[msg("Invalid ban duration specified")]
16 InvalidBanDuration,
17 #[msg("Unauthorized access")]
18 UnauthorizedAccess,
19 #[msg("Admin privileges required")]
20 AdminOnly,
21 #[msg("Unauthorized platform signer")]
22 UnauthorizedPlatform,
23 #[msg("Invalid tree authority PDA")]
24 InvalidTreeAuthority,
25}