Package org.pentaho.platform.api.engine

Examples of org.pentaho.platform.api.engine.PentahoSystemException


          PentahoSystem.notifySystemListenersOfStartup( PentahoSessionHolder.getSession() );
          return null;
        }
      } );
    } catch ( Exception e ) {
      throw new PentahoSystemException( e );
    }

  }
View Full Code Here


              try {
                if ( debug ) {
                  Logger.debug( PentahoSystem.class, "System Listener Start: " + systemListener.getClass().getName() ); //$NON-NLS-1$
                }
                if ( !systemListener.startup( session ) ) {
                  throw new PentahoSystemException( Messages.getInstance().getErrorString(
                      "PentahoSystem.ERROR_0014_STARTUP_FAILURE", systemListener.getClass().getName() ) ); //$NON-NLS-1$
                }
                if ( debug ) {
                  Logger
                      .debug( PentahoSystem.class, "System Listener Complete: " + systemListener.getClass().getName() ); //$NON-NLS-1$
                }
              } catch ( Throwable e ) {
                throw new PentahoSystemException( Messages.getInstance().getErrorString(
                    "PentahoSystem.ERROR_0014_STARTUP_FAILURE", systemListener.getClass().getName() ), e ); //$NON-NLS-1$
              } finally {
                PentahoSystem.systemExitPoint(); // commit transaction
              }
              return null;
            }
          } );
        } catch ( Exception e ) {
          if ( e instanceof PentahoSystemException ) {
            throw (PentahoSystemException) e;
          } else {
            throw new PentahoSystemException( e );
          }
        }

      }
    }
View Full Code Here

        Logger.info( PentahoSystem.class.getName(), Messages.getInstance().getString(
            "PentahoSystem.ERROR_0021_OBJECT_NOT_SPECIFIED", interfaceName ) ); //$NON-NLS-1$
      }
    }
    if ( !isRequiredValid ) {
      throw new PentahoSystemException( Messages.getInstance().getErrorString(
          "PentahoSystem.ERROR_0420_MISSING_REQUIRED_OBJECT" ) ); //$NON-NLS-1$
    }
  }
View Full Code Here

public class PentahoSystemExceptionTest extends TestCase {

  public void testPentahoSystemException1() {
    //    info("Expected: Exception will be caught and thrown as a Pentaho System Exception"); //$NON-NLS-1$
    PentahoSystemException pse = new PentahoSystemException();
    System.out.println( "PentahoSystemException :" + pse ); //$NON-NLS-1$
    Assert.assertTrue( true );

  }
View Full Code Here

  }

  public void testPentahoSystemException2() {
    //    info("Expected: Exception will be caught and thrown as a Pentaho System Exception"); //$NON-NLS-1$
    PentahoSystemException pse1 = new PentahoSystemException( "A test Pentaho System Exception has been thrown" ); //$NON-NLS-1$
    System.out.println( "PentahoSystemException :" + pse1 ); //$NON-NLS-1$   
    Assert.assertTrue( true );
  }
View Full Code Here

    Assert.assertTrue( true );
  }

  public void testPentahoSystemException3() {
    //    info("Expected: A Pentaho System Exception will be created with Throwable as a parameter"); //$NON-NLS-1$
    PentahoSystemException pse2 = new PentahoSystemException( new Throwable( "This is a throwable exception" ) ); //$NON-NLS-1$
    System.out.println( "PentahoSystemException" + pse2 ); //$NON-NLS-1$   
    Assert.assertTrue( true );

  }
View Full Code Here

  }

  public void testPentahoSystemException4() {
    //    info("Expected: Exception will be caught and thrown as a Pentaho System Exception"); //$NON-NLS-1$
    PentahoSystemException pse3 =
        new PentahoSystemException( "A test Pentaho System Exception has been thrown", new Throwable() ); //$NON-NLS-1$
    System.out.println( "PentahoSystemException :" + pse3 ); //$NON-NLS-1$   
    Assert.assertTrue( true );

  }
View Full Code Here

TOP

Related Classes of org.pentaho.platform.api.engine.PentahoSystemException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.