Class CsvWriteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cloud.opencode.base.core.exception.OpenException
cloud.opencode.base.csv.exception.OpenCsvException
cloud.opencode.base.csv.exception.CsvWriteException
- All Implemented Interfaces:
OpenExceptionMeta, Serializable
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 Summary
ConstructorsConstructorDescriptionCsvWriteException(String message) Constructs a write exception with message 构造带消息的写入异常CsvWriteException(String message, Throwable cause) Constructs a write exception with message and cause 构造带消息和原因的写入异常 -
Method Summary
Modifier and TypeMethodDescriptionstatic CsvWriteExceptionCreates a write exception with message and cause 创建带消息和原因的写入异常Methods inherited from class OpenCsvException
bindError, getColumn, getLine, hasColumnInfo, hasLineInfo, ioError, parseError, writeErrorMethods inherited from class OpenException
getComponent, getErrorCode, getMessage, getRawMessageMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface OpenExceptionMeta
getMetaPrefix
-
Constructor Details
-
CsvWriteException
Constructs a write exception with message 构造带消息的写入异常- Parameters:
message- the detail message | 详细消息
-
CsvWriteException
-
-
Method Details
-
of
Creates a write exception with message and cause 创建带消息和原因的写入异常- Parameters:
message- the error message | 错误消息cause- the cause | 原因- Returns:
- the exception | 异常
-