本文整理了Java中org.eclipse.persistence.exceptions.XMLMarshalException.setInternalException()
方法的一些代码示例,展示了XMLMarshalException.setInternalException()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLMarshalException.setInternalException()
方法的具体详情如下:
包路径:org.eclipse.persistence.exceptions.XMLMarshalException
类名称:XMLMarshalException
方法名:setInternalException
暂无
代码示例来源: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: 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 invalidXPathString(String xpathString, Exception nestedException) {
Object[] args = { xpathString };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, INVALID_XPATH_STRING, args), nestedException);
exception.setErrorCode(INVALID_XPATH_STRING);
exception.setInternalException(nestedException);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public static XMLMarshalException errorSettingSchemas(Exception nestedException, Object[] schemas) {
Object[] args = { };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, ERROR_RESOLVING_XML_SCHEMA, args), nestedException);
exception.setErrorCode(ERROR_SETTING_SCHEMAS);
exception.setInternalException(nestedException);
return exception;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
public static XMLMarshalException invalidEnumClassSpecified(Exception nestedException, String className) {
Object[] args = { className };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, INVALID_ENUM_CLASS_SPECIFIED, args), nestedException);
exception.setErrorCode(INVALID_ENUM_CLASS_SPECIFIED);
exception.setInternalException(nestedException);
return exception;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
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;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
public static XMLMarshalException unmarshalFromStringException(String systemId, Exception nestedException) {
Object[] args = {systemId };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, UNMARSHAL_FROM_STRING_FAILED, args));
exception.setInternalException(nestedException);
exception.setErrorCode(PLATFORM_NOT_SUPPORTED_WITH_JSON_MEDIA_TYPE);
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 invalidEnumClassSpecified(Exception nestedException, String className) {
Object[] args = { className };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, INVALID_ENUM_CLASS_SPECIFIED, args), nestedException);
exception.setErrorCode(INVALID_ENUM_CLASS_SPECIFIED);
exception.setInternalException(nestedException);
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;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public static XMLMarshalException errorInvokingCharacterEscapeHandler(String methodName, Object handler, Throwable nestedException) {
Object[] args = {methodName, handler};
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, ERROR_INVOKING_CHARACTER_ESCAPE_HANDLER, args));
exception.setErrorCode(ERROR_INVOKING_CHARACTER_ESCAPE_HANDLER);
exception.setInternalException(nestedException);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public static XMLMarshalException errorProcessingCharacterEscapeHandler(String methodName, Object handler, Throwable nestedException) {
Object[] args = {methodName, handler};
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, ERROR_PROCESSING_CHARACTER_ESCAPE_HANDLER, args));
exception.setErrorCode(ERROR_PROCESSING_CHARACTER_ESCAPE_HANDLER);
exception.setInternalException(nestedException);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public static XMLMarshalException validateException(Exception nestedException) {
Object[] args = { };
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, VALIDATE_EXCEPTION, args), nestedException);
exception.setErrorCode(VALIDATE_EXCEPTION);
exception.setInternalException(nestedException);
return exception;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
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 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: org.eclipse.persistence/org.eclipse.persistence.core
public static XMLMarshalException errorInvokingIDResolver(String methodName, Object resolver, Throwable nestedException) {
Object[] args = {methodName, resolver};
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, ERROR_INVOKING_ID_RESOLVER, args));
exception.setErrorCode(ERROR_INVOKING_ID_RESOLVER);
exception.setInternalException(nestedException);
return exception;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
public static XMLMarshalException errorProcessingCharacterEscapeHandler(String methodName, Object handler, Throwable nestedException) {
Object[] args = {methodName, handler};
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, ERROR_PROCESSING_CHARACTER_ESCAPE_HANDLER, args));
exception.setErrorCode(ERROR_PROCESSING_CHARACTER_ESCAPE_HANDLER);
exception.setInternalException(nestedException);
return exception;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
public static XMLMarshalException errorInvokingIDResolver(String methodName, Object resolver, Throwable nestedException) {
Object[] args = {methodName, resolver};
XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, ERROR_INVOKING_ID_RESOLVER, args));
exception.setErrorCode(ERROR_INVOKING_ID_RESOLVER);
exception.setInternalException(nestedException);
return exception;
}
内容来源于网络,如有侵权,请联系作者删除!