FileDocCategorySizeDatePackage
XMLPlatformException.javaAPI DocGlassfish v2 API9555Tue May 22 16:54:48 BST 2007oracle.toplink.essentials.platform.xml

XMLPlatformException

public class XMLPlatformException extends TopLinkException

Fields Summary
public static final int
XML_PLATFORM_CLASS_NOT_FOUND
public static final int
XML_PLATFORM_COULD_NOT_INSTANTIATE
public static final int
XML_PLATFORM_COULD_NOT_CREATE_DOCUMENT
public static final int
XML_PLATFORM_INVALID_XPATH
public static final int
XML_PLATFORM_VALIDATION_EXCEPTION
public static final int
XML_PLATFORM_PARSER_ERROR_RESOLVING_XML_SCHEMA
public static final int
XML_PLATFORM_PARSE_EXCEPTION
public static final int
XML_PLATFORM_PARSER_FILE_NOT_FOUND_EXCEPTION
public static final int
XML_PLATFORM_PARSER_SAX_PARSE_EXCEPTION
public static final int
XML_PLATFORM_TRANSFORM_EXCEPTION
public static final int
XML_PLATFORM_INVALID_TYPE
Constructors Summary
protected XMLPlatformException(String message)


       
        super(message);
    
Methods Summary
public static oracle.toplink.essentials.platform.xml.XMLPlatformExceptionxmlPlatformClassNotFound(java.lang.String xmlPlatformClassName, java.lang.Exception nestedException)

        Object[] args = { xmlPlatformClassName };
        int errorCode = XML_PLATFORM_CLASS_NOT_FOUND;
        XMLPlatformException exception = new XMLPlatformException(ExceptionMessageGenerator.buildMessage(XMLPlatformException.class, errorCode, args));
        exception.setErrorCode(errorCode);
        exception.setInternalException(nestedException);
        return exception;
    
public static oracle.toplink.essentials.platform.xml.XMLPlatformExceptionxmlPlatformCouldNotCreateDocument(java.lang.Exception nestedException)

        Object[] args = {  };
        int errorCode = XML_PLATFORM_COULD_NOT_CREATE_DOCUMENT;
        XMLPlatformException exception = new XMLPlatformException(ExceptionMessageGenerator.buildMessage(XMLPlatformException.class, errorCode, args));
        exception.setErrorCode(errorCode);
        return exception;
    
public static oracle.toplink.essentials.platform.xml.XMLPlatformExceptionxmlPlatformCouldNotInstantiate(java.lang.String xmlPlatformClassName, java.lang.Exception nestedException)

        Object[] args = { xmlPlatformClassName };
        int errorCode = XML_PLATFORM_COULD_NOT_INSTANTIATE;
        XMLPlatformException exception = new XMLPlatformException(ExceptionMessageGenerator.buildMessage(XMLPlatformException.class, errorCode, args));
        exception.setErrorCode(errorCode);
        exception.setInternalException(nestedException);
        return exception;
    
public static oracle.toplink.essentials.platform.xml.XMLPlatformExceptionxmlPlatformErrorResolvingXMLSchema(java.net.URL url, java.lang.Exception nestedException)

        Object[] args = { url };
        int errorCode = XML_PLATFORM_PARSER_ERROR_RESOLVING_XML_SCHEMA;
        XMLPlatformException exception = new XMLPlatformException(ExceptionMessageGenerator.buildMessage(XMLPlatformException.class, errorCode, args));
        exception.setErrorCode(errorCode);
        exception.setInternalException(nestedException);
        return exception;
    
public static oracle.toplink.essentials.platform.xml.XMLPlatformExceptionxmlPlatformErrorResolvingXMLSchemas(java.lang.Object[] schemas, java.lang.Exception nestedException)

        Object[] args = {  };
        int errorCode = XML_PLATFORM_PARSER_ERROR_RESOLVING_XML_SCHEMA;
        XMLPlatformException exception = new XMLPlatformException(ExceptionMessageGenerator.buildMessage(XMLPlatformException.class, errorCode, args));
        exception.setErrorCode(errorCode);
        exception.setInternalException(nestedException);
        return exception;
    
public static oracle.toplink.essentials.platform.xml.XMLPlatformExceptionxmlPlatformFileNotFoundException(java.io.File file, java.io.IOException nestedException)

        Object[] args = { file.getAbsolutePath() };
        int errorCode = XML_PLATFORM_PARSER_FILE_NOT_FOUND_EXCEPTION;
        XMLPlatformException exception = new XMLPlatformException(ExceptionMessageGenerator.buildMessage(XMLPlatformException.class, errorCode, args));
        exception.setErrorCode(errorCode);
        exception.setInternalException(nestedException);
        return exception;
    
public static oracle.toplink.essentials.platform.xml.XMLPlatformExceptionxmlPlatformInvalidTypeException(int type)
Handles an invalid type setting in a schema reference.

see
oracle.toplink.essentials.platform.xml.XMLSchemaReference.getType()

        Object[] args = { new Integer(type) };
        int errorCode = XML_PLATFORM_INVALID_TYPE;
        XMLPlatformException exception = new XMLPlatformException(ExceptionMessageGenerator.buildMessage(XMLPlatformException.class, errorCode, args));
        exception.setErrorCode(errorCode);
        return exception;
    
public static oracle.toplink.essentials.platform.xml.XMLPlatformExceptionxmlPlatformInvalidXPath(java.lang.Exception nestedException)

        Object[] args = {  };
        int errorCode = XML_PLATFORM_INVALID_XPATH;
        XMLPlatformException exception = new XMLPlatformException(ExceptionMessageGenerator.buildMessage(XMLPlatformException.class, errorCode, args));
        exception.setErrorCode(errorCode);
        exception.setInternalException(nestedException);
        return exception;
    
public static oracle.toplink.essentials.platform.xml.XMLPlatformExceptionxmlPlatformParseException(java.lang.Exception nestedException)

        Object[] args = {  };
        int errorCode = XML_PLATFORM_PARSE_EXCEPTION;
        XMLPlatformException exception = new XMLPlatformException(ExceptionMessageGenerator.buildMessage(XMLPlatformException.class, errorCode, args));
        exception.setErrorCode(errorCode);
        exception.setInternalException(nestedException);
        return exception;
    
public static oracle.toplink.essentials.platform.xml.XMLPlatformExceptionxmlPlatformSAXParseException(org.xml.sax.SAXParseException nestedException)

        Object[] args = { new Integer(nestedException.getLineNumber()), nestedException.getSystemId(), nestedException.getMessage() };
        int errorCode = XML_PLATFORM_PARSER_SAX_PARSE_EXCEPTION;
        XMLPlatformException exception = new XMLPlatformException(ExceptionMessageGenerator.buildMessage(XMLPlatformException.class, errorCode, args));
        exception.setErrorCode(errorCode);
        exception.setInternalException(nestedException);
        return exception;
    
public static oracle.toplink.essentials.platform.xml.XMLPlatformExceptionxmlPlatformTransformException(java.lang.Exception nestedException)

        Object[] args = {  };
        int errorCode = XML_PLATFORM_TRANSFORM_EXCEPTION;
        XMLPlatformException exception = new XMLPlatformException(ExceptionMessageGenerator.buildMessage(XMLPlatformException.class, errorCode, args));
        exception.setErrorCode(errorCode);
        exception.setInternalException(nestedException);
        return exception;
    
public static oracle.toplink.essentials.platform.xml.XMLPlatformExceptionxmlPlatformValidationException(java.lang.Exception nestedException)

        Object[] args = {  };
        int errorCode = XML_PLATFORM_VALIDATION_EXCEPTION;
        XMLPlatformException exception = new XMLPlatformException(ExceptionMessageGenerator.buildMessage(XMLPlatformException.class, errorCode, args));
        exception.setErrorCode(errorCode);
        exception.setInternalException(nestedException);
        return exception;
    
public static oracle.toplink.essentials.platform.xml.XMLPlatformExceptionxmlPlatformValidationException(java.lang.String errorMessage)
Takes an error messsage string

        int errorCode = XML_PLATFORM_VALIDATION_EXCEPTION;
        XMLPlatformException exception = new XMLPlatformException(errorMessage);
        exception.setErrorCode(errorCode);
        return exception;