Class CsvWriteException

All Implemented Interfaces:
OpenExceptionMeta, Serializable

public class CsvWriteException extends OpenCsvException
CSV Write Exception - Exception for CSV writing errors CSV写入异常 - CSV写入错误异常

Thrown when CSV content cannot be written due to I/O errors, encoding problems, or invalid data.

当由于I/O错误、编码问题或无效数据而无法写入CSV内容时抛出。

Usage Examples | 使用示例:

throw CsvWriteException.of("Failed to flush output", ioException);

Security | 安全性:

  • Thread-safe: Yes (immutable) - 线程安全: 是(不可变)
Since:
JDK 25, opencode-base-csv V1.0.3
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Constructor Details

    • CsvWriteException

      public CsvWriteException(String message)
      Constructs a write exception with message 构造带消息的写入异常
      Parameters:
      message - the detail message | 详细消息
    • CsvWriteException

      public CsvWriteException(String message, Throwable cause)
      Constructs a write exception with message and cause 构造带消息和原因的写入异常
      Parameters:
      message - the detail message | 详细消息
      cause - the cause | 原因
  • Method Details

    • of

      public static CsvWriteException of(String message, Throwable cause)
      Creates a write exception with message and cause 创建带消息和原因的写入异常
      Parameters:
      message - the error message | 错误消息
      cause - the cause | 原因
      Returns:
      the exception | 异常