FileDocCategorySizeDatePackage
StaticWeaveException.javaAPI DocGlassfish v2 API7375Tue May 22 16:54:18 BST 2007oracle.toplink.essentials.exceptions

StaticWeaveException

public class StaticWeaveException extends TopLinkException

Fields Summary
private String
resourceName
public static final int
EXCEPTION_OPENNING_ARCHIVE
public static final int
EXCEPTION_NO_SOURCE_SPECIFIED
public static final int
EXCEPTION_NO_TARGET_SPECIFIED
public static final int
EXCEPTION_NO_SUPPORT_WEAVING_INPLACE_FOR_JAR
public static final int
EXCEPTION_OPEN_LOGGING_FILE
public static final int
EXCEPTION_FOR_ILLEGALE_LOGGING_LEVEL
public static final int
EXCEPTION_WEAVING
Constructors Summary
public StaticWeaveException()
INTERNAL: TopLink exceptions should only be thrown by TopLink.


                  
      
        super();
    
protected StaticWeaveException(String message)
INTERNAL: TopLink exceptions should only be thrown by TopLink.

        super(message);
    
protected StaticWeaveException(String message, Throwable internalException)
INTERNAL: TopLink exceptions should only be thrown by TopLink.

        super(message);
        setInternalException(internalException);
    
Methods Summary
public static oracle.toplink.essentials.exceptions.StaticWeaveExceptionexceptionOpeningArchive(java.net.URL archive, java.lang.Exception cause)
INTERNAL: TopLink exceptions should only be thrown by TopLink.

        Object[] args = { archive };

        StaticWeaveException openArchiveException = new StaticWeaveException(ExceptionMessageGenerator.buildMessage(StaticWeaveException.class, EXCEPTION_OPENNING_ARCHIVE, args),cause);
        openArchiveException.setResourceName(archive.toString());
        openArchiveException.setErrorCode(EXCEPTION_OPENNING_ARCHIVE);
        return openArchiveException;
    
public static oracle.toplink.essentials.exceptions.StaticWeaveExceptionexceptionPerformWeaving(java.lang.Exception cause)

        Object[] args = { };

        StaticWeaveException loadingException = new StaticWeaveException(ExceptionMessageGenerator.buildMessage(StaticWeaveException.class, EXCEPTION_WEAVING, args), cause);
        loadingException.setResourceName(null);
        loadingException.setErrorCode(EXCEPTION_WEAVING);
        return loadingException;
    
public java.lang.StringgetResourceName()

        return resourceName;
    
public static oracle.toplink.essentials.exceptions.StaticWeaveExceptionillegalLoggingLevel(java.lang.String loggingLevel)
INTERNAL: TopLink exceptions should only be thrown by TopLink.

        Object[] args = { loggingLevel };
        
        StaticWeaveException loadingException = new StaticWeaveException(ExceptionMessageGenerator.buildMessage(StaticWeaveException.class, EXCEPTION_FOR_ILLEGALE_LOGGING_LEVEL, args));
        loadingException.setResourceName(loggingLevel);
        loadingException.setErrorCode(EXCEPTION_FOR_ILLEGALE_LOGGING_LEVEL);
        return loadingException;
    
public static oracle.toplink.essentials.exceptions.StaticWeaveExceptionmissingSource()
INTERNAL: TopLink exceptions should only be thrown by TopLink.

        Object[] args = { null };
        
        StaticWeaveException missingSourceException = new StaticWeaveException(ExceptionMessageGenerator.buildMessage(StaticWeaveException.class, EXCEPTION_NO_SOURCE_SPECIFIED, args));
        missingSourceException.setResourceName(null);
        missingSourceException.setErrorCode(EXCEPTION_NO_SOURCE_SPECIFIED);
        return missingSourceException;
    
public static oracle.toplink.essentials.exceptions.StaticWeaveExceptionmissingTarget()
INTERNAL: TopLink exceptions should only be thrown by TopLink.

        Object[] args = { null };
        
        StaticWeaveException missingTargetException = new StaticWeaveException(ExceptionMessageGenerator.buildMessage(StaticWeaveException.class, EXCEPTION_NO_TARGET_SPECIFIED, args));
        missingTargetException.setResourceName(null);
        missingTargetException.setErrorCode(EXCEPTION_NO_TARGET_SPECIFIED);
        return missingTargetException;
    
public static oracle.toplink.essentials.exceptions.StaticWeaveExceptionopenLoggingFileException(java.lang.String LoggingFile, java.lang.Exception cause)
INTERNAL: TopLink exceptions should only be thrown by TopLink.

        Object[] args = { LoggingFile };
        
        StaticWeaveException loadingException = new StaticWeaveException(ExceptionMessageGenerator.buildMessage(StaticWeaveException.class, EXCEPTION_OPEN_LOGGING_FILE, args), cause);
        loadingException.setResourceName(LoggingFile);
        loadingException.setErrorCode(EXCEPTION_OPEN_LOGGING_FILE);
        return loadingException;
    
public voidsetResourceName(java.lang.String resourceName)

        this.resourceName = resourceName;        
    
public static oracle.toplink.essentials.exceptions.StaticWeaveExceptionweaveInplaceForJar(java.lang.String filePath)
INTERNAL: TopLink exceptions should only be thrown by TopLink.

        Object[] args = { filePath };
        
        StaticWeaveException loadingException = new StaticWeaveException(ExceptionMessageGenerator.buildMessage(StaticWeaveException.class, EXCEPTION_NO_SUPPORT_WEAVING_INPLACE_FOR_JAR, args));
        loadingException.setResourceName(filePath);
        loadingException.setErrorCode(EXCEPTION_NO_SUPPORT_WEAVING_INPLACE_FOR_JAR);
        return loadingException;