本文整理了Java中org.eclipse.persistence.exceptions.XMLMarshalException.getErrorCode()
方法的一些代码示例,展示了XMLMarshalException.getErrorCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLMarshalException.getErrorCode()
方法的具体详情如下:
包路径:org.eclipse.persistence.exceptions.XMLMarshalException
类名称:XMLMarshalException
方法名:getErrorCode
暂无
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.moxy
private JAXBException handleXMLMarshalException(XMLMarshalException xmlMarshalException) {
if(xmlMarshalException.getErrorCode() == XMLMarshalException.NULL_ARGUMENT) {
throw new IllegalArgumentException(xmlMarshalException);
} else {
return new UnmarshalException(xmlMarshalException);
}
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
private JAXBException handleXMLMarshalException(XMLMarshalException xmlMarshalException) {
if(xmlMarshalException.getErrorCode() == XMLMarshalException.NULL_ARGUMENT) {
throw new IllegalArgumentException(xmlMarshalException);
} else {
return new UnmarshalException(xmlMarshalException);
}
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
private void handleXMLMarshalException(XMLMarshalException xmlException) throws IOException {
if(xmlException.getErrorCode() == XMLMarshalException.NO_DESCRIPTOR_WITH_MATCHING_ROOT_ELEMENT || xmlException.getErrorCode() == XMLMarshalException.DESCRIPTOR_NOT_FOUND_IN_PROJECT){
throw SDOException.globalPropertyNotFound();
} else if (xmlException.getCause() instanceof IOException) {
throw (IOException) xmlException.getCause();
} else{
throw xmlException;
}
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.sdo
private void handleXMLMarshalException(XMLMarshalException xmlException) throws IOException {
if(xmlException.getErrorCode() == XMLMarshalException.NO_DESCRIPTOR_WITH_MATCHING_ROOT_ELEMENT || xmlException.getErrorCode() == XMLMarshalException.DESCRIPTOR_NOT_FOUND_IN_PROJECT){
throw SDOException.globalPropertyNotFound();
} else if (xmlException.getCause() instanceof IOException) {
throw (IOException) xmlException.getCause();
} else{
throw xmlException;
}
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
unmarshalRecord = xmlUnmarshaller.createUnmarshalRecord(xmlDescriptor, session);
} catch (XMLMarshalException xme) {
if (xme.getErrorCode() == XMLMarshalException.DESCRIPTOR_NOT_FOUND_IN_PROJECT) {
isPrimitiveWrapper = isPrimitiveWrapper(clazz);
if (isPrimitiveWrapper) {
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
unmarshalRecord = xmlUnmarshaller.createUnmarshalRecord(xmlDescriptor, session);
}catch(XMLMarshalException xme){
if(xme.getErrorCode() == XMLMarshalException.DESCRIPTOR_NOT_FOUND_IN_PROJECT){
isPrimitiveWrapper = isPrimitiveWrapper(clazz);
if (isPrimitiveWrapper) {
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
writerRecord.flush();
}catch(XMLMarshalException xme){
if(xme.getErrorCode() == XMLMarshalException.DESCRIPTOR_NOT_FOUND_IN_PROJECT){
if(aHelperContext != ((SDOType)rootObject.getType()).getHelperContext()){
throw SDOException.dataObjectNotFromHelperContext();
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
writerRecord.flush();
}catch(XMLMarshalException xme){
if(xme.getErrorCode() == XMLMarshalException.DESCRIPTOR_NOT_FOUND_IN_PROJECT){
if(aHelperContext != ((SDOType)xmlDocument.getRootObject().getType()).getHelperContext()){
throw SDOException.dataObjectNotFromHelperContext();
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.sdo
writerRecord.flush();
}catch(XMLMarshalException xme){
if(xme.getErrorCode() == XMLMarshalException.DESCRIPTOR_NOT_FOUND_IN_PROJECT){
if(aHelperContext != ((SDOType)rootObject.getType()).getHelperContext()){
throw SDOException.dataObjectNotFromHelperContext();
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.sdo
writerRecord.flush();
}catch(XMLMarshalException xme){
if(xme.getErrorCode() == XMLMarshalException.DESCRIPTOR_NOT_FOUND_IN_PROJECT){
if(aHelperContext != ((SDOType)xmlDocument.getRootObject().getType()).getHelperContext()){
throw SDOException.dataObjectNotFromHelperContext();
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
if (xme.getErrorCode() == XMLMarshalException.DESCRIPTOR_NOT_FOUND_IN_PROJECT) {
isPrimitiveWrapper = isPrimitiveWrapper(clazz);
if (isPrimitiveWrapper) {
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
if(xme.getErrorCode() == XMLMarshalException.DESCRIPTOR_NOT_FOUND_IN_PROJECT){
isPrimitiveWrapper = isPrimitiveWrapper(clazz);
if (isPrimitiveWrapper) {
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
unmarshalRecord = xmlUnmarshaller.createUnmarshalRecord(xmlDescriptor, session);
} catch (XMLMarshalException xme) {
if (xme.getErrorCode() == XMLMarshalException.DESCRIPTOR_NOT_FOUND_IN_PROJECT) {
isPrimitiveWrapper = isPrimitiveWrapper(clazz);
if (isPrimitiveWrapper) {
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
unmarshalRecord = xmlUnmarshaller.createUnmarshalRecord(xmlDescriptor, session);
}catch(XMLMarshalException xme){
if(xme.getErrorCode() == XMLMarshalException.DESCRIPTOR_NOT_FOUND_IN_PROJECT){
isPrimitiveWrapper = isPrimitiveWrapper(clazz);
if (isPrimitiveWrapper) {
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
unmarshalRecord = xmlUnmarshaller.createUnmarshalRecord(xmlDescriptor, session);
}catch(XMLMarshalException xme){
if(xme.getErrorCode() == XMLMarshalException.DESCRIPTOR_NOT_FOUND_IN_PROJECT){
isPrimitiveWrapper = isPrimitiveWrapper(clazz);
if (isPrimitiveWrapper) {
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
unmarshalRecord = xmlUnmarshaller.createUnmarshalRecord(xmlDescriptor, session);
} catch (XMLMarshalException xme) {
if (xme.getErrorCode() == XMLMarshalException.DESCRIPTOR_NOT_FOUND_IN_PROJECT) {
isPrimitiveWrapper = isPrimitiveWrapper(clazz);
if (isPrimitiveWrapper) {
内容来源于网络,如有侵权,请联系作者删除!