You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you implements custom exception to allow us to intercept exception correctly. ArgumentException is for me too generic.
Current version
privatestaticvoidValidateRowCol(intRow,intCol){if(Row<1||Row> ExcelPackage.MaxRows){thrownew ArgumentException("Row out of range");}if(Col<1||Col> ExcelPackage.MaxColumns){thrownew ArgumentException("Column out of range");}}
Desire version
privatestaticvoidValidateRowCol(intRow,intCol){if(Row<1){thrownew ArgumentOutOfRangeException("Row out of range. Cannot be inferior to 1");}if(Row> ExcelPackage.MaxRows){thrownew RowMaximumReachedException("Maximum of rows reached", ExcelPackage.MaxRows);}if(Col<1){thrownew ArgumentOutOfRangeException("Column out of range. Cannot be inferior to 1");}if(Col> ExcelPackage.MaxColumns){thrownew ColumnMaximumReachedException("Maximum of column reached",ExcelPackage.MaxColumns);}}
The text was updated successfully, but these errors were encountered:
Can you implements custom exception to allow us to intercept exception correctly. ArgumentException is for me too generic.
Current version
Desire version
The text was updated successfully, but these errors were encountered: