private string _FindException(OctopusRoleDeleteExceptionsEnum exceptionId) { string returned = String.Empty; switch (exceptionId) { case OctopusRoleDeleteExceptionsEnum.RoleIsNull: returned = "RoleIsNull.Text"; break; case OctopusRoleDeleteExceptionsEnum.RoleHasUsers: returned = "RoleHasUsers.Text"; break; case OctopusRoleDeleteExceptionsEnum.ActionProhibited: returned = "ActionProhibitedForUser.Text"; break; } return returned; }
public OctopusRoleDeleteException(OctopusRoleDeleteExceptionsEnum exceptionCode) { _code = _FindException(exceptionCode); }