2010年7月13日火曜日

try..catch

try{
insert myObj;
}catch (DmlException e){
System.assertEquals('FIELD_CUSTOM_VALIDATION_EXCEPTION',e.getDmlStatusCode(0));
}

0 件のコメント:

コメントを投稿