public static XMLMarshalException nullArgumentException() { Object[] args = { }; XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, NULL_ARGUMENT, args)); exception.setErrorCode(NULL_ARGUMENT); return exception; }
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; }
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; }
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; } }
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; }
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; }
/** * @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; }
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; }
public static XMLMarshalException nullArgumentException() { Object[] args = { }; XMLMarshalException exception = new XMLMarshalException(ExceptionMessageGenerator.buildMessage(XMLMarshalException.class, NULL_ARGUMENT, args)); exception.setErrorCode(NULL_ARGUMENT); return exception; }
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; }
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; }
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; }
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; }
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; }
/** * @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; }
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; }
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; }
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; }
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; }
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; }