Best code examples for Java 8 SAXParseException class (org.xml.sax.SAXParseException)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 SAXParseException class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Java 8 SAXParseException examples from Open Source projects
This code example shows how to use the following methods: getColumnNumber, getLineNumber, getPublicId, getSystemId
201:	throw new OsmosisRuntimeException( 
-
203:	+ ".  publicId=(" + e.getPublicId() 
204:	+ "), systemId=(" + e.getSystemId() 
205:	+ "), lineNumber=" + e.getLineNumber() 
206:	+ ", columnNumber=" + e.getColumnNumber() + ".", 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber, getSystemId
42:	log.warn("XML parse warning in \""+e.getSystemId()+"\", line "+e.getLineNumber()+", column "+e.getColumnNumber()+": "+e.getMessage()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber, getPublicId, getSystemId
74:	sb.append( "Exception: " + ex.getMessage() ); 
75:	sb.append( "failed at column : " + ex.getColumnNumber() + 
76:	" on line " + ex.getLineNumber() ); 
77:	sb.append( "entity:\n" + ex.getPublicId() + "\n" + ex.getSystemId() ); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getException, getMessage, getColumnNumber, getLineNumber, getPublicId
205:	e = new SAXParseException(ERR, null, null, -1, -1); 
-
207:	assertEquals(ERR, e.getMessage()); 
208:	assertNull(e.getException()); 
-
210:	assertNull(e.getPublicId()); 
211:	assertNull(e.getSystemId()); 
212:	assertEquals(-1, e.getLineNumber()); 
213:	assertEquals(-1, e.getColumnNumber()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage, getLineNumber, getSystemId, toString
96:	"Line:    " + e.getLineNumber() + "\n" + 
97:	"URI:     " + e.getSystemId() + "\n" + 
98:	"Message: " + e.getMessage()); 
99:	visitor.close(e); 
100:	throw new IOException(e.toString()); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getMessage, getLineNumber, getSystemId, toString
96:	"Line:    " + e.getLineNumber() + "\n" + 
97:	"URI:     " + e.getSystemId() + "\n" + 
98:	"Message: " + e.getMessage()); 
99:	visitor.close(e); 
100:	throw new IOException(e.toString()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getColumnNumber, getLineNumber, getPublicId, getSystemId
88:	this.setLineNumber( spe.getLineNumber() ); 
89:	this.setColumnNumber( spe.getColumnNumber() ); 
90:	this.setPublicId( spe.getPublicId() ); 
91:	this.setSystemId( spe.getSystemId() ); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getColumnNumber, getLineNumber, getSystemId
366:	String systemId = ex.getSystemId(); 
-
375:	str.append(ex.getLineNumber()); 
-
377:	str.append(ex.getColumnNumber()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getColumnNumber, getLineNumber, getPublicId, getSystemId
98:	+ "an instance of PUBLIC [" + x.getPublicId() 
99:	+ "], SYSTEM [" + x.getSystemId() + "] - line #" 
100:	+ x.getLineNumber() + ", column #" + x.getColumnNumber(); 
-
102:	Context.getCurrentLogger().log(Level.CONFIG, msg, x); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
121:	Exception input = new SAXParseException("foo", locator); 
-
126:	parser.addDetailsAndPropagate(response, input); 
-
131:	assertEquals(e.getCause(), input); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber, getSystemId
68:	String id = spe.getSystemId(); 
-
75:	sb.append(spe.getLineNumber()); 
-
77:	sb.append(spe.getColumnNumber()); 
-
79:	sb.append(spe.getMessage()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
162:	SAXParseException saxException = new SAXParseException(ex.getMessage(), locator, ex); 
-
164:	getErrorHandler().fatalError(saxException); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
218:	SAXParseException saxException = new SAXParseException(ex.getMessage(), null, null, -1, -1, ex); 
-
221:	errorHandler.fatalError(saxException); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage, getLineNumber, getSystemId
117:	return ("Parsing " + level + "\n" + "Line:    " + e.getLineNumber() + "\n" + "URI:     " + e.getSystemId() + "\n" 
118:	+ "Message: " + e.getMessage()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber, getSystemId
46:	_child.warning(exception); 
-
68:	sb.append(spe.getSystemId()); 
-
70:	sb.append(spe.getLineNumber()); 
-
72:	sb.append(spe.getColumnNumber()); 
-
74:	sb.append(spe.getMessage()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber, getSystemId
62:	_cc.error(formatMessage(exception),exception); 
-
69:	if (e.getSystemId() == null) { 
-
72:	sb.append(e.getSystemId()); 
-
75:	sb.append(e.getLineNumber()); 
-
77:	sb.append(e.getColumnNumber()); 
-
79:	sb.append(e.getMessage()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber, getSystemId
515:	String location = ex.getSystemId(); 
-
532:	ex.getMessage(), 
-
534:	ex.getLineNumber(), 
535:	ex.getColumnNumber(), 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber, getSystemId
497:	String location = ex.getSystemId(); 
-
514:	ex.getMessage(), 
-
516:	ex.getLineNumber(), 
517:	ex.getColumnNumber(), 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLineNumber
399:	"Line " + ex.getLineNumber() + " in XML document from " + resource + " is invalid", ex); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber, getSystemId
41:	log.warn("XML parse warning in \""+e.getSystemId()+"\", line "+e.getLineNumber()+", column "+e.getColumnNumber()+": "+e.getMessage()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getColumnNumber, getLineNumber, getSystemId
51:	systemID = exception.getSystemId(); 
52:	line = exception.getLineNumber(); 
53:	col = exception.getColumnNumber(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getColumnNumber, getLineNumber, getPublicId, getSystemId
90:	this.setLineNumber( spe.getLineNumber() ); 
91:	this.setColumnNumber( spe.getColumnNumber() ); 
92:	this.setPublicId( spe.getPublicId() ); 
93:	this.setSystemId( spe.getSystemId() ); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getColumnNumber, getLineNumber, getPublicId, getSystemId
202:	throw new OsmosisRuntimeException( 
-
204:	+ ".  publicId=(" + e.getPublicId() 
205:	+ "), systemId=(" + e.getSystemId() 
206:	+ "), lineNumber=" + e.getLineNumber() 
207:	+ ", columnNumber=" + e.getColumnNumber() + ".", 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber, getSystemId
658:	return this.message.format( new Object[]{x.getSystemId(), new Integer( x.getLineNumber() ), new Integer( x.getColumnNumber() ), x.getMessage()} ); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage, getLineNumber, getSystemId
226:	final String systemId = e.getSystemId(); 
-
228:	throw new JDOMParseException("Error on line " + 
229:	e.getLineNumber() + " of document " + systemId + ": " + 
230:	e.getMessage(), e, doc); 
-
232:	throw new JDOMParseException("Error on line " + 
233:	e.getLineNumber() + ": " + 
234:	e.getMessage(), e, doc); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage
86:	mErrors += "Error: " + ex.getMessage() + "\n"; 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getException, getMessage, getColumnNumber, getLineNumber
42:	LogLog.warn(msg +ex.getLineNumber()+" and column " 
43:	+ex.getColumnNumber()); 
44:	LogLog.warn(ex.getMessage(), ex.getException()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getException, getMessage, getLineNumber, getSystemId
174:	System.err.println("\n** Parsing error , line " + spe.getLineNumber() 
175:	+ ", uri " + spe.getSystemId()); 
176:	System.err.println(" " + spe.getMessage() ); 
-
179:	if (spe.getException() != null) 
180:	x = spe.getException(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber
97:	this.line = e.getLineNumber(); 
98:	this.column = e.getColumnNumber(); 
99:	this.message = e.getMessage(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage, getLineNumber
93:	throw new SAXException("Line: " + e.getLineNumber() + " message: " + e.getMessage()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage, getLineNumber
466:	log.error("Error parsing XML: " + file + '(' + error.getLineNumber() + ") " + error.getMessage()); 
467:	errors.add(error); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber
48:	fail( "Unable to load XSD: " + ex.getMessage() + ":" + ex.getLineNumber() + ":" + ex.getColumnNumber()  ); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage, getLineNumber, getSystemId
36:	log.warn("**Parsing Warning**\n" + "  line:    " + exception.getLineNumber() + "\n" + "  URI:    :" 
37:	+ exception.getSystemId() + "\n" + "  Message: " + exception.getMessage()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getColumnNumber, getLineNumber, getPublicId, getSystemId
115:	throw new SAXParseException(messageBuffer.toString(), firstException.getPublicId(), firstException.getSystemId(), firstException.getLineNumber(), firstException.getColumnNumber(), firstException); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber, getSystemId
46:	_child.warning(exception); 
-
68:	sb.append(spe.getSystemId()); 
-
70:	sb.append(spe.getLineNumber()); 
-
72:	sb.append(spe.getColumnNumber()); 
-
74:	sb.append(spe.getMessage()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber, getPublicId, getSystemId
231:	String message = "Message : " + e.getMessage() + "\n"; 
232:	message += "Ligne " + e.getLineNumber() + ", colonne " + e.getColumnNumber() + "\n"; 
233:	message += "Public id : " + e.getPublicId() + "\n"; 
234:	message += "System id : " + e.getSystemId(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber, getSystemId
62:	_cc.error(formatMessage(exception),exception); 
-
69:	if (e.getSystemId() == null) { 
-
72:	sb.append(e.getSystemId()); 
-
75:	sb.append(e.getLineNumber()); 
-
77:	sb.append(e.getColumnNumber()); 
-
79:	sb.append(e.getMessage()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber, getPublicId, getSystemId
48:	if (ex.getSystemId() != null) { 
49:	sb.append("systemId=").append(ex.getSystemId()).append(", "); 
-
51:	if (ex.getPublicId() != null) { 
52:	sb.append("publicId=").append(ex.getPublicId()).append(", "); 
-
54:	if (ex.getLineNumber() > 0) { 
55:	sb.append("Line=").append(ex.getLineNumber()); 
-
57:	if (ex.getColumnNumber() > 0) { 
58:	sb.append(", Column=").append(ex.getColumnNumber()); 
-
60:	sb.append(": ").append(ex.getMessage()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLineNumber
111:	errors.add(new XmlParseException(e, document, e.getLineNumber())); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getColumnNumber, getLineNumber, getSystemId
389:	String systemId = ex.getSystemId(); 
-
398:	str.append(ex.getLineNumber()); 
-
400:	str.append(ex.getColumnNumber()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getColumnNumber, getLineNumber, getPublicId, getSystemId
53:	throw new OsmRuntimeException( 
-
55:	+ ".  publicId=(" + e.getPublicId() 
56:	+ "), systemId=(" + e.getSystemId() 
57:	+ "), lineNumber=" + e.getLineNumber() 
58:	+ ", columnNumber=" + e.getColumnNumber() + ".", 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage
391:	failures.add("ERROR: " + exception.getMessage()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber
57:	log.error("Error in document " + identifier + "  at (" + exception.getLineNumber() + "," + exception.getColumnNumber() 
58:	+ ") :" + exception.getMessage()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber, getSystemId
96:	if (spe.getSystemId() != null) { 
97:	sb.append(spe.getSystemId()); 
-
101:	sb.append(spe.getLineNumber()); 
-
103:	sb.append(spe.getColumnNumber()); 
-
107:	sb.append(spe.getMessage()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage, getColumnNumber, getLineNumber, getSystemId
658:	return this.message.format( new Object[]{x.getSystemId(), new Integer( x.getLineNumber() ), new Integer( x.getColumnNumber() ), x.getMessage()} ); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getColumnNumber, getLineNumber, getPublicId, getSystemId
69:	throw new OsmRuntimeException( 
-
71:	+ ".  publicId=(" + e.getPublicId() 
72:	+ "), systemId=(" + e.getSystemId() 
73:	+ "), lineNumber=" + e.getLineNumber() 
74:	+ ", columnNumber=" + e.getColumnNumber() + ".", 
Full Snippet Info
6
CodeRank
See Code Examples for Java 8 SAXParseException Methods: