Hitachi Vantara Pentaho Community Forums
Results 1 to 6 of 6

Thread: "Define error handling" in custom plugin

  1. #1

    Default "Define error handling" in custom plugin

    Hi ,

    Is there any way/chance to use "Define error handling" in custom developed plug in. I have developed PDI plugin which is doing some aggregation logic. When something fails in my plugin I have to take of it programmatic-ally ( I have log bad file my-self from my plugin), or I could use already developed mechanism in "Define error handling" ?

    BRs,
    M

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    Sure, why not. Look at how table output does e.g.

    Regards,
    Sven

  3. #3

    Default

    I have looked, but I could not detect specific points where exactly is the error row bypassing current step and going to error handling step. Can you be more specific ?

    thanks

  4. #4
    Join Date
    Nov 1999
    Posts
    9,729

    Default

    Code:
    try {
     ...
     putRow(rowMeta, rowData);
     ...
    } catch(Exception e) {
     ...
     putError(rowMeta, rowData, 1L, "I can haz problemz", null, "LOLCAT001");
     ...
    }

  5. #5

    Default

    Many thanks for the info,

    So basically when I call method putError than also the context menu "Define Error Handling" after right click on my custom step will be enabled ?

    many thanks for you answers

    M.

  6. #6
    Join Date
    Nov 1999
    Posts
    9,729

    Default

    From StepMetaInterface:

    Code:
        /**
         * @return true if this step supports error "reporting" on rows: the ability to send rows to a certain target step.
         */
        public boolean supportsErrorHandling();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.