ICU-6692 Print a more friendlier error message when schema operation fails due to unsupported feature in the jvm.
X-SVN-Rev: 25475
This commit is contained in:
parent
7c98254385
commit
ecf40b48e6
@ -1,6 +1,6 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* Copyright (C) 2003-2007, International Business Machines Corporation and *
|
||||
* Copyright (C) 2003-2009, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
******************************************************************************
|
||||
*/
|
||||
@ -380,6 +380,12 @@ public final class XLIFF2ICUConverter {
|
||||
} catch (SAXException e) {
|
||||
System.err.println("Can't create the schema...");
|
||||
System.exit(-1);
|
||||
} catch (UnsupportedOperationException e) {
|
||||
System.err.println("ERROR:\tOne of the schema operations is not supported with this JVM.");
|
||||
System.err.println("\tIf you are using GNU Java, you should try using the latest Sun JVM.");
|
||||
System.err.println("\n*Here is the stack trace:");
|
||||
e.printStackTrace();
|
||||
System.exit(-1);
|
||||
}
|
||||
|
||||
resources = NEW_RESOURCES;
|
||||
|
Loading…
Reference in New Issue
Block a user