本文整理了Java中org.mybatis.generator.exception.XMLParserException.<init>()
方法的一些代码示例,展示了XMLParserException.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLParserException.<init>()
方法的具体详情如下:
包路径:org.mybatis.generator.exception.XMLParserException
类名称:XMLParserException
方法名:<init>
[英]Instantiates a new XML parser exception.
[中]实例化一个新的XML解析器异常。
代码示例来源:origin: cxjava/mybatis-generator-core
document = builder.parse(inputSource);
} catch (SAXParseException e) {
throw new XMLParserException(parseErrors);
} catch (SAXException e) {
if (e.getException() == null) {
throw new XMLParserException(parseErrors);
config = parseMyBatisGeneratorConfiguration(rootNode);
} else {
throw new XMLParserException(getString("RuntimeError.5")); //$NON-NLS-1$
throw new XMLParserException(parseErrors);
} catch (ParserConfigurationException e) {
parseErrors.add(e.getMessage());
throw new XMLParserException(parseErrors);
代码示例来源:origin: org.mybatis.generator/mybatis-generator-core
document = builder.parse(inputSource);
} catch (SAXParseException e) {
throw new XMLParserException(parseErrors);
} catch (SAXException e) {
if (e.getException() == null) {
throw new XMLParserException(parseErrors);
config = parseMyBatisGeneratorConfiguration(rootNode);
} else {
throw new XMLParserException(getString("RuntimeError.5")); //$NON-NLS-1$
throw new XMLParserException(parseErrors);
} catch (ParserConfigurationException e) {
parseErrors.add(e.getMessage());
throw new XMLParserException(parseErrors);
代码示例来源:origin: roncoo/roncoo-mybatis-generator
document = builder.parse(inputSource);
} catch (SAXParseException e) {
throw new XMLParserException(parseErrors);
} catch (SAXException e) {
if (e.getException() == null) {
throw new XMLParserException(parseErrors);
config = parseMyBatisGeneratorConfiguration(rootNode);
} else {
throw new XMLParserException(getString("RuntimeError.5")); //$NON-NLS-1$
throw new XMLParserException(parseErrors);
} catch (ParserConfigurationException e) {
parseErrors.add(e.getMessage());
throw new XMLParserException(parseErrors);
代码示例来源:origin: handosme/mybatis-generator-plus
document = builder.parse(inputSource);
} catch (SAXParseException e) {
throw new XMLParserException(parseErrors);
} catch (SAXException e) {
if (e.getException() == null) {
throw new XMLParserException(parseErrors);
config = parseMyBatisGeneratorConfiguration(rootNode);
} else {
throw new XMLParserException(getString("RuntimeError.5")); //$NON-NLS-1$
throw new XMLParserException(parseErrors);
} catch (ParserConfigurationException e) {
parseErrors.add(e.getMessage());
throw new XMLParserException(parseErrors);
代码示例来源:origin: cxjava/mybatis-generator-core
throw new XMLParserException(getString("RuntimeError.14")); //$NON-NLS-1$
throw new XMLParserException(getString("RuntimeError.14")); //$NON-NLS-1$
resourceUrl = Thread.currentThread().getContextClassLoader().getResource(resource);
if (resourceUrl == null) {
throw new XMLParserException(getString("RuntimeError.15", resource)); //$NON-NLS-1$
} catch (IOException e) {
if (stringHasValue(resource)) {
throw new XMLParserException(getString("RuntimeError.16", resource)); //$NON-NLS-1$
} else {
throw new XMLParserException(getString("RuntimeError.17", url)); //$NON-NLS-1$
代码示例来源:origin: cxjava/mybatis-generator-core
throw new XMLParserException(getString("RuntimeError.14")); //$NON-NLS-1$
throw new XMLParserException(getString("RuntimeError.14")); //$NON-NLS-1$
resourceUrl = Thread.currentThread().getContextClassLoader().getResource(resource);
if (resourceUrl == null) {
throw new XMLParserException(getString("RuntimeError.15", resource)); //$NON-NLS-1$
} catch (IOException e) {
if (stringHasValue(resource)) {
throw new XMLParserException(getString("RuntimeError.16", resource)); //$NON-NLS-1$
} else {
throw new XMLParserException(getString("RuntimeError.17", url)); //$NON-NLS-1$
代码示例来源:origin: handosme/mybatis-generator-plus
throw new XMLParserException(getString("RuntimeError.14")); //$NON-NLS-1$
throw new XMLParserException(getString("RuntimeError.14")); //$NON-NLS-1$
resourceUrl = ObjectFactory.getResource(resource);
if (resourceUrl == null) {
throw new XMLParserException(getString(
"RuntimeError.15", resource)); //$NON-NLS-1$
} catch (IOException e) {
if (stringHasValue(resource)) {
throw new XMLParserException(getString(
"RuntimeError.16", resource)); //$NON-NLS-1$
} else {
throw new XMLParserException(getString(
"RuntimeError.17", url)); //$NON-NLS-1$
代码示例来源:origin: org.mybatis.generator/mybatis-generator-core
throw new XMLParserException(getString("RuntimeError.14")); //$NON-NLS-1$
throw new XMLParserException(getString("RuntimeError.14")); //$NON-NLS-1$
resourceUrl = ObjectFactory.getResource(resource);
if (resourceUrl == null) {
throw new XMLParserException(getString(
"RuntimeError.15", resource)); //$NON-NLS-1$
} catch (IOException e) {
if (stringHasValue(resource)) {
throw new XMLParserException(getString(
"RuntimeError.16", resource)); //$NON-NLS-1$
} else {
throw new XMLParserException(getString(
"RuntimeError.17", url)); //$NON-NLS-1$
代码示例来源:origin: roncoo/roncoo-mybatis-generator
throw new XMLParserException(getString("RuntimeError.14")); //$NON-NLS-1$
throw new XMLParserException(getString("RuntimeError.14")); //$NON-NLS-1$
resourceUrl = ObjectFactory.getResource(resource);
if (resourceUrl == null) {
throw new XMLParserException(getString(
"RuntimeError.15", resource)); //$NON-NLS-1$
} catch (IOException e) {
if (stringHasValue(resource)) {
throw new XMLParserException(getString(
"RuntimeError.16", resource)); //$NON-NLS-1$
} else {
throw new XMLParserException(getString(
"RuntimeError.17", url)); //$NON-NLS-1$
代码示例来源:origin: roncoo/roncoo-mybatis-generator
throw new XMLParserException(getString("RuntimeError.14")); //$NON-NLS-1$
throw new XMLParserException(getString("RuntimeError.14")); //$NON-NLS-1$
resourceUrl = ObjectFactory.getResource(resource);
if (resourceUrl == null) {
throw new XMLParserException(getString(
"RuntimeError.15", resource)); //$NON-NLS-1$
} catch (IOException e) {
if (stringHasValue(resource)) {
throw new XMLParserException(getString(
"RuntimeError.16", resource)); //$NON-NLS-1$
} else {
throw new XMLParserException(getString(
"RuntimeError.17", url)); //$NON-NLS-1$
代码示例来源:origin: handosme/mybatis-generator-plus
throw new XMLParserException(getString("RuntimeError.14")); //$NON-NLS-1$
throw new XMLParserException(getString("RuntimeError.14")); //$NON-NLS-1$
resourceUrl = ObjectFactory.getResource(resource);
if (resourceUrl == null) {
throw new XMLParserException(getString(
"RuntimeError.15", resource)); //$NON-NLS-1$
} catch (IOException e) {
if (stringHasValue(resource)) {
throw new XMLParserException(getString(
"RuntimeError.16", resource)); //$NON-NLS-1$
} else {
throw new XMLParserException(getString(
"RuntimeError.17", url)); //$NON-NLS-1$
内容来源于网络,如有侵权,请联系作者删除!