Top Fields Constructors Methods
org.eclipse.persistence.exceptions

public Class SessionLoaderException

extends EclipseLinkException
Class Inheritance
Imports
java.io.PrintWriter, java.util.Iterator, .Vector, org.eclipse.persistence.exceptions.i18n.ExceptionMessageGenerator

Field Summary

Modifier and TypeField and Description
public static final int
private Vector<Throwable>
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
Inherited from org.eclipse.persistence.exceptions.EclipseLinkException:
CRerrorCodehasBeenLoggedindentationStringinternalExceptionsessionshouldPrintInternalException

Constructor Summary

AccessConstructor and Description
public
SessionLoaderException()

INTERNAL: TopLink exceptions should only be thrown by TopLink.

protected
SessionLoaderException(String message)

INTERNAL: TopLink exceptions should only be thrown by TopLink.

protected
SessionLoaderException(String message, Throwable internalException)

INTERNAL: TopLink exceptions should only be thrown by TopLink.

Method Summary

Modifier and TypeMethod and Description
public static SessionLoaderException
public static SessionLoaderException
public static SessionLoaderException
public static SessionLoaderException
failedToLoadTag(String parentNode, String nodeValue, Throwable exception)

public static SessionLoaderException
failedToParseXML(String message, int lineNumber, int columnNumber, Throwable exception)

public static SessionLoaderException
failedToParseXML(String message, Throwable exception)

public static SessionLoaderException
finalException(Vector<E> exceptionList)

public Vector<Throwable>
public static SessionLoaderException
public static SessionLoaderException
public void
printStackTrace(PrintWriter
PrintWriter to use for output
writer
)

Overrides org.eclipse.persistence.exceptions.EclipseLinkException.printStackTrace.

PUBLIC: Iterate through the exception list printing out the stack traces.
public static SessionLoaderException
serverPlatformNoLongerSupported(String serverPlatformClassName)

public void
public String
public static SessionLoaderException
unexpectedValueOfTag(String nodeValue, String parentNode)

public static SessionLoaderException
public static SessionLoaderException
unkownTagAtNode(String tagName, String nodeName, Throwable exception)

Inherited from org.eclipse.persistence.exceptions.EclipseLinkException:
crgetErrorCodegetIndentationStringgetInternalExceptiongetMessagegetSessiongetUnformattedMessagehasBeenLoggedprintStackTraceprintStackTracesetErrorCodesetHasBeenLoggedsetIndentationStringsetInternalExceptionsetSessionsetShouldPrintInternalExceptionshouldPrintInternalException

Field Detail

COULD_NOT_FIND_PROJECT_XMLback to summary
public static final int COULD_NOT_FIND_PROJECT_XML
exceptionListback to summary
private Vector<Throwable> exceptionList
FAILED_TO_LOAD_PROJECT_XMLback to summary
public static final int FAILED_TO_LOAD_PROJECT_XML
FINAL_EXCEPTIONback to summary
public static final int FINAL_EXCEPTION
INVALID_SESSION_XMLback to summary
public static final int INVALID_SESSION_XML
NON_PARSE_EXCEPTIONback to summary
public static final int NON_PARSE_EXCEPTION
SERVER_PLATFORM_NO_LONGER_SUPPORTEDback to summary
public static final int SERVER_PLATFORM_NO_LONGER_SUPPORTED
UN_EXPECTED_VALUE_OF_TAGback to summary
public static final int UN_EXPECTED_VALUE_OF_TAG
UNABLE_TO_LOAD_PROJECT_CLASSback to summary
public static final int UNABLE_TO_LOAD_PROJECT_CLASS
UNABLE_TO_PARSE_XMLback to summary
public static final int UNABLE_TO_PARSE_XML
UNABLE_TO_PROCESS_TAGback to summary
public static final int UNABLE_TO_PROCESS_TAG
UNKNOWN_ATTRIBUTE_OF_TAGback to summary
public static final int UNKNOWN_ATTRIBUTE_OF_TAG
UNKNOWN_TAGback to summary
public static final int UNKNOWN_TAG
XML_SCHEMA_PARSING_ERRORback to summary
public static final int XML_SCHEMA_PARSING_ERROR

Constructor Detail

SessionLoaderExceptionback to summary
public SessionLoaderException()

INTERNAL: TopLink exceptions should only be thrown by TopLink.

SessionLoaderExceptionback to summary
protected SessionLoaderException(String message)

INTERNAL: TopLink exceptions should only be thrown by TopLink.

SessionLoaderExceptionback to summary
protected SessionLoaderException(String message, Throwable internalException)

INTERNAL: TopLink exceptions should only be thrown by TopLink.

Method Detail

couldNotFindProjectXmlback to summary
public static SessionLoaderException couldNotFindProjectXml(String fileName)
failedToLoadProjectClassback to summary
public static SessionLoaderException failedToLoadProjectClass(String className, Throwable exception)
failedToLoadProjectXmlback to summary
public static SessionLoaderException failedToLoadProjectXml(String fileName, Throwable exception)
failedToLoadTagback to summary
public static SessionLoaderException failedToLoadTag(String parentNode, String nodeValue, Throwable exception)
failedToParseXMLback to summary
public static SessionLoaderException failedToParseXML(String message, int lineNumber, int columnNumber, Throwable exception)
failedToParseXMLback to summary
public static SessionLoaderException failedToParseXML(String message, Throwable exception)
finalExceptionback to summary
public static SessionLoaderException finalException(Vector<E> exceptionList)
getExceptionListback to summary
public Vector<Throwable> getExceptionList()
InvalidSessionXMLback to summary
public static SessionLoaderException InvalidSessionXML()
nonParseExceptionback to summary
public static SessionLoaderException nonParseException(Throwable exception)
printStackTraceback to summary
public void printStackTrace(PrintWriter writer)

Overrides org.eclipse.persistence.exceptions.EclipseLinkException.printStackTrace.

PUBLIC: Iterate through the exception list printing out the stack traces.

Parameters
writer:PrintWriter

Doc from java.lang.Throwable.printStackTrace.

PrintWriter to use for output

Annotations
@Override
serverPlatformNoLongerSupportedback to summary
public static SessionLoaderException serverPlatformNoLongerSupported(String serverPlatformClassName)
setExceptionListback to summary
public void setExceptionList(Vector<Throwable> list)
toStringback to summary
public String toString()

Overrides org.eclipse.persistence.exceptions.EclipseLinkException.toString.

Doc from org.eclipse.persistence.exceptions.EclipseLinkException.toString.

INTERNAL:

Returns:String

Doc from java.lang.Throwable.toString.

a string representation of this throwable.

Annotations
@Override
unexpectedValueOfTagback to summary
public static SessionLoaderException unexpectedValueOfTag(String nodeValue, String parentNode)
unknownAttributeOfTagback to summary
public static SessionLoaderException unknownAttributeOfTag(String nodeName)
unkownTagAtNodeback to summary
public static SessionLoaderException unkownTagAtNode(String tagName, String nodeName, Throwable exception)