Error handling etc.
Multipurpose exception normally raised when invalid data is found by a read or write operation.
error msg is equivalent to raise (Error msg).
error msg
raise (Error msg)