private string FindException(OctopusUserDeleteExceptionEnum exceptionId) { string returned = String.Empty; switch(exceptionId) { case OctopusUserDeleteExceptionEnum.UserIsNull: returned = "OUE1.Text"; break; case OctopusUserDeleteExceptionEnum.AdministratorUser: returned = "OUE2.Text"; break; case OctopusUserDeleteExceptionEnum.UserHasContract: returned = "OUE9.Text"; break; } return returned; }
public OctopusUserDeleteException(OctopusUserDeleteExceptionEnum exceptionCode) { this.code = this.FindException(exceptionCode); Console.WriteLine("EXCEPTION USER DELETE EXCEPTION: {0}",code); }