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.
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 ());
}