Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
Handling exceptions from either custom codeactivity or invokemethod

답변됨 Handling exceptions from either custom codeactivity or invokemethod

  • 2012년 7월 12일 목요일 오후 5:13
     
     

    I am trying to pass an exception up to a workflow from either my custom CodeActivity or an InvokeMethod activity. It seems when I throw an exception in a coded activity I made it can't actually make it to the workflow, I just get a bubble error.

    So I thought maybe if I use the InvokeMethod activity and do a try/catch in the actual workflow. Same problem.

    I assume there is a way to do this, but apparently it isn't as straight forward as just throwing the exception.

모든 응답

  • 2012년 7월 12일 목요일 오후 7:47
    중재자
     
     답변됨
    Actually it should be straightforward.
    What exception type are you tring to throw?
    Are you using TryCatchFinally activity with Catch blocks? What type did you pick on the Catch blocks?
    Tim
    • 답변으로 표시됨 LeoTangModerator 2012년 7월 19일 목요일 오전 2:51
    •