serviceproviders/jsapi/platformservices/src/messaging.js
branchRCL_3
changeset 46 4ac3198c2c5b
parent 38 02682e02e51f
child 50 5dae2c62e9b6
equal deleted inserted replaced
42:92cfb77afb61 46:4ac3198c2c5b
   780         if ((message.subject).length > 256) {
   780         if ((message.subject).length > 256) {
   781             //	a("starteditor3");
   781             //	a("starteditor3");
   782             throw new DeviceException(this.error.DATA_OUT_OF_RANGE_ERR, "Messaging:startEditor:subject is too lengthy");//SErrMissingArgument = 1003
   782             throw new DeviceException(this.error.DATA_OUT_OF_RANGE_ERR, "Messaging:startEditor:subject is too lengthy");//SErrMissingArgument = 1003
   783         }
   783         }
   784     }
   784     }
   785     if (message.to == undefined || message.to == null) {
       
   786         //	a("starteditor4");
       
   787         throw new DeviceException(this.error.MISSING_ARG_ERR, "Messaging:startEditor:to field is missing");//SErrMissingArgument = 1003
       
   788     }
       
   789     
   785     
   790     if (message.attachments != undefined && message.attachments != null && typeof message.attachments != "object") {
   786     if (message.attachments != undefined && message.attachments != null && typeof message.attachments != "object") {
   791         //		a("INVALID_ARG_ERR");
   787         //		a("INVALID_ARG_ERR");
   792         throw new DeviceException(this.error.INVALID_ARG_ERR, "Messaging:startEditor:attachment is invalid");//SErrMissingArgument = 1003
   788         throw new DeviceException(this.error.INVALID_ARG_ERR, "Messaging:startEditor:attachment is invalid");//SErrMissingArgument = 1003
   793     }
   789     }