Changed exceptions to take line as a size_t

`Exception` takes `line` as a `size_t`, so this is for consistency.