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 ban duration specified")]
14 InvalidBanDuration,
15 #[msg("Unauthorized access")]
16 UnauthorizedAccess,
17 #[msg("Admin privileges required")]
18 AdminOnly,
19 #[msg("Unauthorized platform signer")]
20 UnauthorizedPlatform,
21 #[msg("Cannot refer yourself")]
22 SelfReferral,
23 #[msg("User account already exists")]
24 UserAlreadyExists,
25 #[msg("Interview index does not match expected value")]
26 InterviewIndexMismatch,
27 #[msg("Invalid recommendation value (must be 0, 1, or 2)")]
28 InvalidRecommendation,
29}