Charm Error Library (error) 

The error library contains procedures for representing RISC OS and Charm errors :

Set message

export dynamic proc set_message (ref array char zs)

  • passed zs - error message

Set code

export dynamic proc set_code (int code)

  • passed code - error code

Generate error

export dynamic proc generate ()

  1. Invoking this procedure will cause a RISC OS error to be generated.

Get RISC OS error

export dynamic proc get_riscos_error () ref RiscOs

  • returns wrapped RISC OS error

Get message

export dynamic proc get_message () ref array char

  • returns error message

Get code

export dynamic proc get_code () int

  • returns error code

Make a Free Website with Yola.