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; }
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 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; }
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; }
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; }
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; }
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; }
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 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; }
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; }
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; }
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; }
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; }
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 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; }
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; }
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; }
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; }