Apps     Components     Interfaces     All Files     Source Tree     source: tos.lib.VM.interfaces.BombillaError.nc

Interface: BombillaError

Interface for specifying error conditions in Bombilla execution.

Components providing this interface:
tos.lib.VM.components.BErrorProxy
tos.lib.VM.components.BombillaEngine
tos.lib.VM.components.BombillaEngineM

Components requiring this interface:
tos.lib.VM.components.BBuffer
tos.lib.VM.components.BContextSynch
tos.lib.VM.components.BLocksSafe
tos.lib.VM.components.BQueue
tos.lib.VM.components.BStacks
tos.lib.VM.components.BVirus
tos.lib.VM.opcodes.OPaddM
tos.lib.VM.opcodes.OPerrM
tos.lib.VM.opcodes.OPgetmbM
tos.lib.VM.opcodes.OPgetmsM
tos.lib.VM.opcodes.OPgetsetvar4M
tos.lib.VM.opcodes.OPgtM
tos.lib.VM.opcodes.OPgteM
tos.lib.VM.opcodes.OPjumpc5M
tos.lib.VM.opcodes.OPjumps5M
tos.lib.VM.opcodes.OPltM
tos.lib.VM.opcodes.OPlteM
tos.lib.VM.opcodes.OPpunlockM
tos.lib.VM.opcodes.OPpunlockbM
tos.lib.VM.opcodes.OPsendM
tos.lib.VM.opcodes.OPsendrM
tos.lib.VM.opcodes.OPsenseM
tos.lib.VM.opcodes.OPsetmbM
tos.lib.VM.opcodes.OPsetmsM
tos.lib.VM.opcodes.OPuartM
tos.lib.VM.opcodes.OPunlockM
tos.lib.VM.opcodes.OPunlockbM

Commands

Commands - Details

error

result_t error(BombillaContext *context, uint8_t cause)

Notify that an error has occured in a context. When appropriate, the context's execution state should reflect the cause of the error; specifically, if the error occured on a specific instruction, the context's capsule and pc should point to this instruction.

Parameters:

context - The context encountering the error.

cause - The error code indicating the cause of the error. Should be one of BOMB_ERROR constants.

Returns: SUCCESS if the error was acknowledged, FAIL otherwise.