csvOrThrow

@SinceKotools(project = Project.Csv, version = "2.3", stability = StabilityLevel.Alpha)
fun String.csvOrThrow(): CsvPathResult.Success

Returns this string as a CSV path suffixed with the .csv extension, or throws a CsvPathResult.Exception.BlankString when this string is blank, or throws a CsvPathResult.Exception.CsvExtensionAsPath when this string equals the .csv extension.

@SinceKotools(project = Project.Csv, version = "2.3", stability = StabilityLevel.Alpha)
fun NotBlankString.csvOrThrow(): CsvPathResult.Success

Returns this string as a CSV path suffixed with the .csv extension, or throws a CsvPathResult.Exception.CsvExtensionAsPath if this string equals the .csv extension.