Ejemplo n.º 1
0
		internal static string GetMessage(AccountsErrors code)
		{
			switch (code)
			{
				case AccountsErrors.InvalidId:
					return @"account.Id == Account.InvalidId";
				case AccountsErrors.DomainUsed:
					return @"Domain name is used by another account";
				case AccountsErrors.IdUsed:
					return @"Failed to add account, id was used";
				case AccountsErrors.OldNotFound:
					return @"Old account not found";
				case AccountsErrors.DomainRequred:
					return @"Domain name is not specified";
			}

			return null;
		}
Ejemplo n.º 2
0
        internal static string GetMessage(AccountsErrors code)
        {
            switch (code)
            {
            case AccountsErrors.InvalidId:
                return(@"account.Id == Account.InvalidId");

            case AccountsErrors.DomainUsed:
                return(@"Domain name is used by another account");

            case AccountsErrors.IdUsed:
                return(@"Failed to add account, id was used");

            case AccountsErrors.OldNotFound:
                return(@"Old account not found");

            case AccountsErrors.DomainRequred:
                return(@"Domain name is not specified");
            }

            return(null);
        }
Ejemplo n.º 3
0
 internal AccountsException(AccountsErrors code)
     : base(GetMessage(code))
 {
 }
Ejemplo n.º 4
0
		internal AccountsException(AccountsErrors code)
			: base(GetMessage(code))
		{

		}