本文整理了Java中org.eclipse.persistence.exceptions.XMLMarshalException.<init>()
方法的一些代码示例,展示了XMLMarshalException.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLMarshalException.<init>()
方法的具体详情如下:
包路径:org.eclipse.persistence.exceptions.XMLMarshalException
类名称:XMLMarshalException
方法名:<init>
暂无
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public static XMLMarshalException nullArgumentException() {
Object[] args = { };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, NULL_ARGUMENT, args));
exception.setErrorCode(NULL_ARGUMENT);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public static XMLMarshalException errorInvokingPrefixMapperMethod(String methodName, Object prefixMapper) {
Object[] args = {methodName, prefixMapper};
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, ERROR_INVOKING_NAMESPACE_PREFIX_MAPPER, args));
exception.setErrorCode(ERROR_INVOKING_NAMESPACE_PREFIX_MAPPER);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public static XMLMarshalException errorProcessingPrefixMapper(String methodName, Object prefixMapper) {
Object[] args = {methodName, prefixMapper};
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, ERROR_PROCESSING_PREFIX_MAPPER, args));
exception.setErrorCode(ERROR_PROCESSING_PREFIX_MAPPER);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public static XMLMarshalException nullValueNotAllowed(String variableName, String className) {
Object[] args = {variableName, className};
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, NULL_VALUE_NOT_ALLOWED_FOR_VARIABLE, args));
exception.setErrorCode(NULL_VALUE_NOT_ALLOWED_FOR_VARIABLE);
return exception;
}
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
public static XMLMarshalException namespaceNotFound(String prefix) {
Object[] args = { prefix };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, NAMESPACE_NOT_FOUND, args));
exception.setErrorCode(NAMESPACE_NOT_FOUND);
return exception;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
public static XMLMarshalException invalidSwaRefAttribute(String attributeClassification) {
Object[] args = { attributeClassification };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, INVALID_SWA_REF_ATTRIBUTE_TYPE, args));
exception.setErrorCode(INVALID_SWA_REF_ATTRIBUTE_TYPE);
return exception;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* @since EclipseLink 2.5.0
*/
public static XMLMarshalException unknownXsiTypeValue(String xsiType, Mapping mapping) {
Object[] args = {xsiType, mapping};
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, UNKNOWN_XSI_TYPE, args));
exception.setErrorCode(UNKNOWN_XSI_TYPE);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
public static XMLMarshalException invalidXPathIndexString(String xpathString) {
Object[] args = { xpathString };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, INVALID_XPATH_INDEX_STRING, args));
exception.setErrorCode(INVALID_XPATH_INDEX_STRING);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
public static XMLMarshalException nullArgumentException() {
Object[] args = { };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, NULL_ARGUMENT, args));
exception.setErrorCode(NULL_ARGUMENT);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
public static XMLMarshalException namespaceNotFound(String prefix) {
Object[] args = { prefix };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, NAMESPACE_NOT_FOUND, args));
exception.setErrorCode(NAMESPACE_NOT_FOUND);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
public static XMLMarshalException illegalStateXMLUnmarshallerHandler() {
Object[] args = { };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, ILLEGAL_STATE_XML_UNMARSHALLER_HANDLER, args));
exception.setErrorCode(ILLEGAL_STATE_XML_UNMARSHALLER_HANDLER);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public static XMLMarshalException unmappedContentHandlerDoesntImplement(Exception nestedException, String className) {
Object[] args = { className };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, UNMAPPED_CONTENTHANDLER_DOESNT_IMPLEMENT, args), nestedException);
exception.setErrorCode(UNMAPPED_CONTENTHANDLER_DOESNT_IMPLEMENT);
exception.setInternalException(nestedException);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public static XMLMarshalException errorProcessingIDResolver(String methodName, Object resolver, Throwable nestedException) {
Object[] args = {methodName, resolver};
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, ERROR_PROCESSING_ID_RESOLVER, args));
exception.setErrorCode(ERROR_PROCESSING_ID_RESOLVER);
exception.setInternalException(nestedException);
return exception;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
public static XMLMarshalException errorInstantiatingSchemaPlatform(Exception nestedException) {
Object[] args = { };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, ERROR_INSTANTIATING_SCHEMA_PLATFORM, args), nestedException);
exception.setErrorCode(ERROR_INSTANTIATING_SCHEMA_PLATFORM);
exception.setInternalException(nestedException);
return exception;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* @since EclipseLink 2.5.0
*/
public static XMLMarshalException noDescriptorFound(Mapping mapping) {
Object[] args = { mapping.getAttributeName() };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, NO_DESCRIPTOR_FOUND, args));
exception.setErrorCode(NO_DESCRIPTOR_FOUND);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
public static XMLMarshalException defaultRootElementNotSpecified(XMLDescriptor descriptor) {
Object[] args = { descriptor.getJavaClassName() };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, DEFAULT_ROOT_ELEMENT_NOT_SPECIFIED, args));
exception.setErrorCode(DEFAULT_ROOT_ELEMENT_NOT_SPECIFIED);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
public static XMLMarshalException errorResolvingXMLSchema(Exception nestedException) {
Object[] args = { };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, ERROR_RESOLVING_XML_SCHEMA, args), nestedException);
exception.setErrorCode(ERROR_RESOLVING_XML_SCHEMA);
exception.setInternalException(nestedException);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public static XMLMarshalException unmarshalException(Exception nestedException) {
Object[] args = { };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, UNMARSHAL_EXCEPTION, args), nestedException);
exception.setErrorCode(UNMARSHAL_EXCEPTION);
exception.setInternalException(nestedException);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public static XMLMarshalException noDescriptorFound(DatabaseMapping mapping) {
Object[] args = { mapping.getAttributeName() };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, NO_DESCRIPTOR_FOUND, args));
exception.setErrorCode(NO_DESCRIPTOR_FOUND);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public static XMLMarshalException errorInstantiatingUnmappedContentHandler(Exception nestedException, String className) {
Object[] args = { className };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, ERROR_INSTANTIATING_UNMAPPED_CONTENTHANDLER, args), nestedException);
exception.setErrorCode(ERROR_INSTANTIATING_UNMAPPED_CONTENTHANDLER);
exception.setInternalException(nestedException);
return exception;
}
内容来源于网络,如有侵权,请联系作者删除!