Error Handling
Different BI Publisher classes handle errors differently.
Use of report manager definition and report manager search classes should be wrapped in a try-catch statement to handle any errors. The BI Publisher engine class methods typically contain an error parameter as part of their signature that you can check for any errors. Other BI Publisher classes generally return a populated object that can be checked for a null value to determine any errors.