Skip to content

转化错误的建议(type conversion error) #309

@ping9719

Description

@ping9719

我的文档:

image

用户在输入错误的数据,我得到的错误不是我想要的:

image

你的错误类型为(InvalidCastException:SystemException)

image

我希望可以你自建一个错误类型,提取出关键的错误信息(ExcelInvalidCastException:InvalidCastException)

image

然后你抛出ExcelInvalidCastException,不抛出InvalidCastException,这样子对向右代码没有影响(可能需要重写tostring()),我也可以获取ColumnName,CellRow....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions