Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3679

a custom checked exception is wrapped as OperationException

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 8.0.5
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Steps to Reproduce

      1. configure erro-page in web.xml to catch a specific exception
        	<error-page>
        		<exception-type>support.error.MyCheckedException</exception-type>
        		<location>/error.zul</location>
        	</error-page>
        
      2. throw a checked exception that impelments Expectable (like attached MyCheckedException.java) in a zul like:
        <zk>
        <zscript><![CDATA[
        throw new support.error.MyCheckedException();
        ]]></zscript>
        </zk>
        

      Current Result

      it's wrapped as OperationException, so users can't handle it directly by its class name. it doesn't redirect to error.zul

      Expected Result

      redirect to error.zul

      Debug Info

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            hawk hawk
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: