Error and exception handling.