Entering content frame

Function documentation Error Handling for Loader Errors Locate the document in the library structure

Use

If an error occurs in the Loader, an exception of the class com.sap.dbtech.powertoys.LoaderException is raised.

If you cannot connect to the Loader, or if an existing connection is broken, an exception of the classcom.sap.dbtech.rte.comm.RTEException is raised.

Example

You execute the SET command using Java. An error message is output if an exception of the class RTEException or LoaderException is raised.

try {

    String result = session.cmd ("SET MAXERRORCOUNT 0");

}

catch (RTEException rteExc) {

    System.out.println ("connection broken: " + rteExc.toString ());

}

catch (LoaderException loaderExc) {

    System.out.println ("command failed: " + loaderExc.toString ());

}

 

Leaving content frame