Chapter 11. Runtime error handling

Table of Contents

Introduction
Program error
Resource error
User input error
See also

Introduction

As the main goal of Obix is to increase the reliability and maintainability in software developments, error handling plays an important role in Obix.

This chapter explains which runtime errors can occur and how to handle them.

Let's start by defining the term runtime error.

A runtime error is an error that occurs during the execution of an application, after the application has been successfully compiled (i.e. no errors reported by the compiler).

There are 3 kinds of runtime errors:

  • program errors (e.g. a division by zero)

  • resource errors (e.g. a file write error)

  • user input errors (e.g. an invalid post code entered by the user)

Each kind of error will be discussed in the following sections.