// Copyright (c) Subzero Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use rialo_s_instruction::error::InstructionError;

/// Error type for Oracle Registry operations
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum OracleProcessorError {
    /// Invalid report data
    ReportData,
    /// Invalid event data
    EventData,
    /// Invalid slot to report
    Slot,
}

impl From<OracleProcessorError> for InstructionError {
    fn from(error: OracleProcessorError) -> Self {
        InstructionError::Custom(error as u32)
    }
}
