private string FindException(OpenCbsPackageDeleteExceptionEnum exceptionId) { string returned = String.Empty; switch(exceptionId) { case OpenCbsPackageDeleteExceptionEnum.PackageIsNull: returned = "PackageExceptionPackageIsNull.Text"; break; case OpenCbsPackageDeleteExceptionEnum.AlreadyDeleted: returned = "PackageExceptionAlreadyDeleted.Text"; break; } return returned; }
private string FindException(OpenCbsPackageDeleteExceptionEnum exceptionId) { string returned = String.Empty; switch (exceptionId) { case OpenCbsPackageDeleteExceptionEnum.PackageIsNull: returned = "PackageExceptionPackageIsNull.Text"; break; case OpenCbsPackageDeleteExceptionEnum.AlreadyDeleted: returned = "PackageExceptionAlreadyDeleted.Text"; break; } return(returned); }
public OpenCbsPackageDeleteException(OpenCbsPackageDeleteExceptionEnum exceptionCode) { code = FindException(exceptionCode); }
public OpenCbsPackageDeleteException(OpenCbsPackageDeleteExceptionEnum exceptionCode) { code = FindException(exceptionCode); }