gpt4 book ai didi

org.eclipse.persistence.exceptions.XMLMarshalException.getErrorCode()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 10:34:40 25 4
gpt4 key购买 nike

本文整理了Java中org.eclipse.persistence.exceptions.XMLMarshalException.getErrorCode()方法的一些代码示例,展示了XMLMarshalException.getErrorCode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLMarshalException.getErrorCode()方法的具体详情如下:
包路径:org.eclipse.persistence.exceptions.XMLMarshalException
类名称:XMLMarshalException
方法名:getErrorCode

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) {

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com