Hello all,
I have a java class that extends exception and it is being thrown.
I can't seem to be able to catch it in PHP. If I catch JavaException my
variables (errNum & errMsg) cannot be found.
My class is as follows:
public class ErrorDetail extends Exception {
public int errNum;
public String errMsg;
// constructors:
public ErrorDetail() {
errNum = 0;
errMsg = "";
}
public ErrorDetail( int num, String msg ) {
errNum = num;
errMsg = msg;
}
/* method of the ErrorDetail class that returns true
if an error has not occurred: */
public boolean checkError() {
return ( errNum == 0 );
}
}
Any assistance would be greatly appreciated.
Many thanks,
Rob
|