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