private string FindException(OctopusDOAUpdateExceptionEnum exceptionId) { string returned = String.Empty; switch(exceptionId) { case OctopusDOAUpdateExceptionEnum.NewNameIsNull: returned = "DOAExceptionNewNameIsNull.Text"; break; case OctopusDOAUpdateExceptionEnum.NoSelect: returned = "DOAExceptionNoSelect.Text"; break; } return returned; }
public OctopusDOAUpdateException(OctopusDOAUpdateExceptionEnum exceptionCode) { code = FindException(exceptionCode); }