private string _FindException(OpenCbsCollateralUpdateExceptionEnum exceptionId) { string returned = String.Empty; switch(exceptionId) { case OpenCbsCollateralUpdateExceptionEnum.NewNameIsNull: returned = "CollateralExceptionNewNameIsNull.Text"; break; case OpenCbsCollateralUpdateExceptionEnum.NoSelect: returned = "CollateralExceptionNoSelect.Text"; break; } return returned; }
private string _FindException(OpenCbsCollateralUpdateExceptionEnum exceptionId) { string returned = String.Empty; switch (exceptionId) { case OpenCbsCollateralUpdateExceptionEnum.NewNameIsNull: returned = "CollateralExceptionNewNameIsNull.Text"; break; case OpenCbsCollateralUpdateExceptionEnum.NoSelect: returned = "CollateralExceptionNoSelect.Text"; break; } return(returned); }
public OpenCbsCollateralUpdateException(OpenCbsCollateralUpdateExceptionEnum exceptionCode) { _code = _FindException(exceptionCode); }