protected void ProcessError(int errorCode, string message) { switch (errorCode) { case 1003: throw new MemberNotExistException(message); default: throw new Exception(message); } }