“The creator of this fault did not specify a Reason” Exception

“The creator of this fault did not specify a Reason” Exception

if(!DidItPass)
{    
    InvalidRoutingCodeFault fault = new InvalidRoutingCodeFault("Invalid Routing Code - No Approval Started");    
    throw new FaultException<InvalidRoutingCodeFault>(fault, new FaultReason("Invalid Routing Code - No Approval Started"));
}

 

posted @ 2019-05-31 16:12  ChuckLu  阅读(1060)  评论(0编辑  收藏  举报