Error Codes
All 24 IronQError variants
The program uses the IronQError enum for all error conditions. Each error includes a descriptive message.
| Error | Message |
|---|---|
QueuePaused | Queue is currently paused |
InsufficientStake | Insufficient stake amount |
InvalidJobStatus | Job is not in the expected status |
JobAlreadyClaimed | Job has already been claimed |
MaxConcurrentJobsReached | Worker has reached maximum concurrent jobs |
UnauthorizedCreator | Only the job creator can perform this action |
UnauthorizedWorker | Only the assigned worker can perform this action |
UnauthorizedArbiter | Only the arbiter can resolve disputes |
DeadlinePassed | Job deadline has passed |
DeadlineNotPassed | Job deadline has not yet passed |
WorkerHasActiveJobs | Worker has active jobs, cannot deregister |
ZeroReward | Reward amount must be greater than zero |
InvalidPriority | Invalid priority level |
ArithmeticOverflow | Arithmetic overflow |
JobAlreadyInProgress | Job cannot be cancelled after being claimed |
JobNotTerminal | Job is not in a terminal state, cannot close |
InvalidSlashRate | Slash rate must be <= 10000 basis points (100%) |
InvalidCrankReward | Crank reward rate must be <= 10000 basis points (100%) |
InvalidRentRecipient | Result rent must be returned to the worker who submitted it |
ZeroAmount | Amount must be greater than zero |
InvalidMaxConcurrentJobs | Max concurrent jobs must be greater than zero |
WorkerInactive | Worker is not active |
AccountVersionMismatch | Account version mismatch — migration required |
UnauthorizedPendingAuthority | Only the proposed authority can accept the transfer |