private void InitializeWorkbook(string path)
{
using (FileStream file = new FileStream(path, FileMode.Open, FileAccess.Read))
{
try
{
xssfworkbook = new XSSFWorkbook(file);
}
catch(NullReferenceException e)
{
string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
throw new ResourceException(e);
}
}
}