Given:public class CustomException extends Exception {
private final int errorcode;
public CustomException(int errorcode, Throwable cause){
super(cause);
this. errorCode = errorcode;
}
public CustomException(int errorCode, String message,
Throwable cause){
super(message, cause);
this. errorcode = errorcode;
}
public string getMessage (){
return string. format ("Code: &d - &s [8s]", this. errorCode,
super. getMessage(),
this.getcause().getMessage()):
}
public static void main(String [ ] args){
try {
throw new CustomException (9001, "APPLICATION ERROR-9001",
new FileNotFoundException ("MyFile. txt") ) // Line 1
} catch(CustomException ex){
system.out.printIn(ex.getMessage( ) );
}
}
}
结果如何?