treat errors as exceptions for this module