Layer7 API Management

  • 1.  Capture general exception error

    Posted Mar 23, 2018 10:46 AM

    Dear Team,

     

    We are develop a sets of assertion that will capture exception error raised by gateway at run time.

     

    But we tested that using handle error and raised error will throw those exception. And we cannot capture the error message. The error will then log into the audit log only. 

     

    The question is there any sample assertion that help to capture these run time exception error like prefix.message and return prefix.message to user. 



  • 2.  Re: Capture general exception error

    Broadcom Employee
    Posted Dec 24, 2018 12:59 PM

    Good morning,

     

    Depending on how the policy is written, the last audit produced by the policy can be accessed through the ${audit.details.last.fullText} context variable. The policy will need to ensure that you use an At Least One Branch is used and one branch has a check for the context variable then additional actions list handle error and raised error.

     

    Sincerely,


    Stephen Hughes
    Broadcom Support