Raise exceptions for scripts