C3 Tutorial
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Error Handling 2

  • You will want to define your own faults (optional failure values) using fault.
  • To return a fault, simply use return but with a ? suffix.
  • Fault values follow the same naming standard as global constants.