Handling errors in buildsystem. Creating exceptions.