oracle.toplink.tools.builderreader
Class BuilderException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
oracle.toplink.exceptions.TopLinkException
oracle.toplink.tools.builderreader.BuilderException
- All Implemented Interfaces:
- java.io.Serializable
- public class BuilderException
- extends TopLinkException
Purpose: Exception for any problem detected while building a descriptor from a Builder descriptor file.
- See Also:
- Serialized Form
Method Summary |
static BuilderException |
cannotWriteParameter(java.lang.Object object, java.lang.Class type)
|
static BuilderException |
classNotFound(java.lang.Exception exception, java.lang.String className)
|
static BuilderException |
conversionError(java.lang.Object object, java.lang.Throwable internalException)
|
static BuilderException |
couldNotAccessMethod(java.lang.reflect.Method method)
|
static BuilderException |
couldNotAccessMethodWithReceiver(java.lang.reflect.Method applyResultMethod, java.lang.Object receiver)
|
static BuilderException |
couldNotResolveINIFileLocation(java.lang.String sourceString, java.util.Vector searchPaths)
|
static BuilderException |
expectingDollarStarFormat(java.io.StreamTokenizer tokenizer)
|
static BuilderException |
expectingObjectFoundToken(java.io.StreamTokenizer tokenizer, java.lang.String nextToken)
|
static BuilderException |
fileNotFound(java.io.FileNotFoundException exception)
|
int |
getLineNumber()
PUBLIC: Return the line number that caused the exception to be raised. |
java.lang.String |
getMessage()
PUBLIC: Return the exception error message. |
java.lang.String |
getSource()
PUBLIC: Return the source to the descriptor file that cause the error to occur. |
static BuilderException |
illegalAccessException(java.lang.IllegalAccessException accessException)
|
static BuilderException |
illegalAccessExceptionWhileInvoking(java.lang.IllegalAccessException exception, java.lang.reflect.Method method, java.lang.Object receiver)
|
static BuilderException |
invalidArguments(java.lang.reflect.Method applyResultMethod, java.lang.Object receiver)
|
static BuilderException |
invalidClassCast(java.lang.String castString)
|
static BuilderException |
invalidINIMethod(java.lang.reflect.Method method)
|
static BuilderException |
invalidNameFormat(java.net.MalformedURLException exception)
|
static BuilderException |
invocationException(java.lang.reflect.Method applyResultMethod, java.lang.Throwable targetException)
|
static BuilderException |
invocationTargetException(java.lang.Exception targetException)
|
static BuilderException |
ioExceptionClose(java.io.IOException exception)
|
static BuilderException |
ioExceptionInNextToken(java.io.IOException exception, java.io.StreamTokenizer tokenizer)
|
static BuilderException |
ioExceptionOpen(java.io.IOException exception)
|
static BuilderException |
multipleProjectsFound(java.io.File xmlDirectoryName, java.lang.String projectName)
|
static BuilderException |
newInstanceIllegalAccessException(java.lang.IllegalAccessException exception, java.lang.Class javaClass)
|
static BuilderException |
newInstanceInstantiationException(java.lang.InstantiationException exception, java.lang.Class javaClass)
|
static BuilderException |
noSuchMethod(java.lang.NoSuchMethodException exception, java.lang.String method, java.lang.Class receiver, java.lang.Class[] parms)
|
static BuilderException |
notEnoughINIElements(Definition def, int count)
|
static BuilderException |
noWriterOrFileNameGiven()
|
static BuilderException |
openFailedForURL(java.lang.String url)
|
static BuilderException |
parameterMismatch(java.lang.reflect.Method method, int size)
|
static BuilderException |
postLoadMethodNotFound(java.lang.Class aClass, java.lang.String methodName)
|
static BuilderException |
postLoadMethodNotStatic(java.lang.Class aClass, java.lang.String methodName)
|
static BuilderException |
projectNotFound(java.io.File xmlDirectoryName, java.lang.String projectName)
|
static BuilderException |
sectionDefinitionNotFoundWhileBuilding(java.lang.Object target, INISection section)
|
static BuilderException |
securityException(java.lang.SecurityException exception, java.lang.String method, java.lang.Class receiver, java.lang.Class[] parms)
|
static BuilderException |
setExistenceCheckingNotUnderstood(java.lang.String token)
|
void |
setLineNumber(int lineNumber)
PUBLIC: Return the line number that caused the exception to be raised. |
void |
setSource(java.lang.String sourceString)
|
static BuilderException |
targetInvocationExceptionWhileInvoking(java.lang.reflect.InvocationTargetException exception, java.lang.reflect.Method method, java.lang.Object receiver)
|
static BuilderException |
tooManyINIElements(Definition def, int count)
|
static BuilderException |
unexpectedCharacterLeftBrace(java.io.StreamTokenizer tokenizer)
|
static BuilderException |
unexpectedCharacterRightBrace(java.io.StreamTokenizer tokenizer)
|
static BuilderException |
unexpectedWord(java.io.StreamTokenizer tokenizer)
|
static BuilderException |
writeError(java.io.IOException exception, java.lang.String writeString)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NO_SUCH_METHOD
public static final int NO_SUCH_METHOD
-
- See Also:
- Constant Field Values
POST_LOAD_METHOD_NOT_FOUND
public static final int POST_LOAD_METHOD_NOT_FOUND
-
- See Also:
- Constant Field Values
CANNOT_WRITE_PARAMETER
public static final int CANNOT_WRITE_PARAMETER
-
- See Also:
- Constant Field Values
COULD_NOT_ACCESS_METHOD
public static final int COULD_NOT_ACCESS_METHOD
-
- See Also:
- Constant Field Values
INVOCATION_EXCEPTION
public static final int INVOCATION_EXCEPTION
-
- See Also:
- Constant Field Values
INVALID_ARGUMENTS
public static final int INVALID_ARGUMENTS
-
- See Also:
- Constant Field Values
COULD_NOT_ACCESS_METHOD_WITH_RECEIVER
public static final int COULD_NOT_ACCESS_METHOD_WITH_RECEIVER
-
- See Also:
- Constant Field Values
PARAMETER_MISMATCH
public static final int PARAMETER_MISMATCH
-
- See Also:
- Constant Field Values
SECURITY_EXCEPTION
public static final int SECURITY_EXCEPTION
-
- See Also:
- Constant Field Values
SECTION_DEFINITION_NOT_FOUND_WHILE_BUILDING
public static final int SECTION_DEFINITION_NOT_FOUND_WHILE_BUILDING
-
- See Also:
- Constant Field Values
CONVERSION_ERROR
public static final int CONVERSION_ERROR
-
- See Also:
- Constant Field Values
FILE_NOT_FOUND
public static final int FILE_NOT_FOUND
-
- See Also:
- Constant Field Values
INVALID_NAME_FORMAT
public static final int INVALID_NAME_FORMAT
-
- See Also:
- Constant Field Values
OPEN_FAILED_FOR_URL
public static final int OPEN_FAILED_FOR_URL
-
- See Also:
- Constant Field Values
COULD_NOT_RESOLVE_INIFILE_LOCATION
public static final int COULD_NOT_RESOLVE_INIFILE_LOCATION
-
- See Also:
- Constant Field Values
TARGET_INVOCATION_EXCEPTION_WHILE_INVOKING
public static final int TARGET_INVOCATION_EXCEPTION_WHILE_INVOKING
-
- See Also:
- Constant Field Values
ILLEGAL_ACCESS_EXCEPTION_WHILE_INVOKING
public static final int ILLEGAL_ACCESS_EXCEPTION_WHILE_INVOKING
-
- See Also:
- Constant Field Values
EXPECTING_DOLLAR_STAR_FORMAT
public static final int EXPECTING_DOLLAR_STAR_FORMAT
-
- See Also:
- Constant Field Values
UNEXPECTED_CHARACTER_LEFT_BRACE
public static final int UNEXPECTED_CHARACTER_LEFT_BRACE
-
- See Also:
- Constant Field Values
UNEXPECTED_CHARACTER_RIGHT_BRACE
public static final int UNEXPECTED_CHARACTER_RIGHT_BRACE
-
- See Also:
- Constant Field Values
EXPECTING_OBJECT_FOUND_TOKEN
public static final int EXPECTING_OBJECT_FOUND_TOKEN
-
- See Also:
- Constant Field Values
UNEXPECTED_WORD
public static final int UNEXPECTED_WORD
-
- See Also:
- Constant Field Values
SET_EXISTENCE_CHECKING_NOT_UNDERSTOOD
public static final int SET_EXISTENCE_CHECKING_NOT_UNDERSTOOD
-
- See Also:
- Constant Field Values
CLASS_NOT_FOUND
public static final int CLASS_NOT_FOUND
-
- See Also:
- Constant Field Values
NOT_ENOUGH_INI_ELEMENTS
public static final int NOT_ENOUGH_INI_ELEMENTS
-
- See Also:
- Constant Field Values
TOO_MANY_INI_ELEMENTS
public static final int TOO_MANY_INI_ELEMENTS
-
- See Also:
- Constant Field Values
WRITE_ERROR
public static final int WRITE_ERROR
-
- See Also:
- Constant Field Values
ILLEGAL_ACCESS_EXCEPTION
public static final int ILLEGAL_ACCESS_EXCEPTION
-
- See Also:
- Constant Field Values
INVOCATION_TARGET_EXCEPTION
public static final int INVOCATION_TARGET_EXCEPTION
-
- See Also:
- Constant Field Values
NEW_INSTANCE_INSTANTIATION_EXCEPTION
public static final int NEW_INSTANCE_INSTANTIATION_EXCEPTION
-
- See Also:
- Constant Field Values
NEW_INSTANCE_ILLEGAL_ACCESS_EXCEPTION
public static final int NEW_INSTANCE_ILLEGAL_ACCESS_EXCEPTION
-
- See Also:
- Constant Field Values
IO_EXCEPTION_IN_NEXT_TOKEN
public static final int IO_EXCEPTION_IN_NEXT_TOKEN
-
- See Also:
- Constant Field Values
IO_EXCEPTION_ON_CLOSE
public static final int IO_EXCEPTION_ON_CLOSE
-
- See Also:
- Constant Field Values
INVALID_INI_METHOD
public static final int INVALID_INI_METHOD
-
- See Also:
- Constant Field Values
INVALID_CLASSCAST
public static final int INVALID_CLASSCAST
-
- See Also:
- Constant Field Values
NO_WRITER_SPECIFIED
public static final int NO_WRITER_SPECIFIED
-
- See Also:
- Constant Field Values
IO_EXCEPTION_ON_OPEN
public static final int IO_EXCEPTION_ON_OPEN
-
- See Also:
- Constant Field Values
POST_LOAD_METHOD_NOT_STATIC
public static final int POST_LOAD_METHOD_NOT_STATIC
-
- See Also:
- Constant Field Values
PROJECT_NOT_FOUND
public static final int PROJECT_NOT_FOUND
-
- See Also:
- Constant Field Values
MULTIPLE_PROJECTS_WITH_NAME
public static final int MULTIPLE_PROJECTS_WITH_NAME
-
- See Also:
- Constant Field Values
cannotWriteParameter
public static BuilderException cannotWriteParameter(java.lang.Object object,
java.lang.Class type)
classNotFound
public static BuilderException classNotFound(java.lang.Exception exception,
java.lang.String className)
conversionError
public static BuilderException conversionError(java.lang.Object object,
java.lang.Throwable internalException)
couldNotAccessMethod
public static BuilderException couldNotAccessMethod(java.lang.reflect.Method method)
couldNotAccessMethodWithReceiver
public static BuilderException couldNotAccessMethodWithReceiver(java.lang.reflect.Method applyResultMethod,
java.lang.Object receiver)
couldNotResolveINIFileLocation
public static BuilderException couldNotResolveINIFileLocation(java.lang.String sourceString,
java.util.Vector searchPaths)
expectingDollarStarFormat
public static BuilderException expectingDollarStarFormat(java.io.StreamTokenizer tokenizer)
expectingObjectFoundToken
public static BuilderException expectingObjectFoundToken(java.io.StreamTokenizer tokenizer,
java.lang.String nextToken)
fileNotFound
public static BuilderException fileNotFound(java.io.FileNotFoundException exception)
getLineNumber
public int getLineNumber()
- PUBLIC: Return the line number that caused the exception to be raised. This is the line number in the descriptor file.
getMessage
public java.lang.String getMessage()
- Description copied from class:
TopLinkException
- PUBLIC: Return the exception error message. TopLink error messages are multi-line so that detail descriptions of the exception are given.
-
- Overrides:
getMessage
in class TopLinkException
getSource
public java.lang.String getSource()
- PUBLIC: Return the source to the descriptor file that cause the error to occur.
illegalAccessException
public static BuilderException illegalAccessException(java.lang.IllegalAccessException accessException)
illegalAccessExceptionWhileInvoking
public static BuilderException illegalAccessExceptionWhileInvoking(java.lang.IllegalAccessException exception,
java.lang.reflect.Method method,
java.lang.Object receiver)
invalidArguments
public static BuilderException invalidArguments(java.lang.reflect.Method applyResultMethod,
java.lang.Object receiver)
invalidClassCast
public static BuilderException invalidClassCast(java.lang.String castString)
invalidINIMethod
public static BuilderException invalidINIMethod(java.lang.reflect.Method method)
invalidNameFormat
public static BuilderException invalidNameFormat(java.net.MalformedURLException exception)
invocationException
public static BuilderException invocationException(java.lang.reflect.Method applyResultMethod,
java.lang.Throwable targetException)
invocationTargetException
public static BuilderException invocationTargetException(java.lang.Exception targetException)
ioExceptionClose
public static BuilderException ioExceptionClose(java.io.IOException exception)
ioExceptionInNextToken
public static BuilderException ioExceptionInNextToken(java.io.IOException exception,
java.io.StreamTokenizer tokenizer)
ioExceptionOpen
public static BuilderException ioExceptionOpen(java.io.IOException exception)
multipleProjectsFound
public static BuilderException multipleProjectsFound(java.io.File xmlDirectoryName,
java.lang.String projectName)
newInstanceIllegalAccessException
public static BuilderException newInstanceIllegalAccessException(java.lang.IllegalAccessException exception,
java.lang.Class javaClass)
newInstanceInstantiationException
public static BuilderException newInstanceInstantiationException(java.lang.InstantiationException exception,
java.lang.Class javaClass)
noSuchMethod
public static BuilderException noSuchMethod(java.lang.NoSuchMethodException exception,
java.lang.String method,
java.lang.Class receiver,
java.lang.Class[] parms)
notEnoughINIElements
public static BuilderException notEnoughINIElements(Definition def,
int count)
noWriterOrFileNameGiven
public static BuilderException noWriterOrFileNameGiven()
openFailedForURL
public static BuilderException openFailedForURL(java.lang.String url)
parameterMismatch
public static BuilderException parameterMismatch(java.lang.reflect.Method method,
int size)
postLoadMethodNotFound
public static BuilderException postLoadMethodNotFound(java.lang.Class aClass,
java.lang.String methodName)
postLoadMethodNotStatic
public static BuilderException postLoadMethodNotStatic(java.lang.Class aClass,
java.lang.String methodName)
projectNotFound
public static BuilderException projectNotFound(java.io.File xmlDirectoryName,
java.lang.String projectName)
sectionDefinitionNotFoundWhileBuilding
public static BuilderException sectionDefinitionNotFoundWhileBuilding(java.lang.Object target,
INISection section)
securityException
public static BuilderException securityException(java.lang.SecurityException exception,
java.lang.String method,
java.lang.Class receiver,
java.lang.Class[] parms)
setExistenceCheckingNotUnderstood
public static BuilderException setExistenceCheckingNotUnderstood(java.lang.String token)
setLineNumber
public void setLineNumber(int lineNumber)
- PUBLIC: Return the line number that caused the exception to be raised. This is the line number in the descriptor file.
setSource
public void setSource(java.lang.String sourceString)
targetInvocationExceptionWhileInvoking
public static BuilderException targetInvocationExceptionWhileInvoking(java.lang.reflect.InvocationTargetException exception,
java.lang.reflect.Method method,
java.lang.Object receiver)
tooManyINIElements
public static BuilderException tooManyINIElements(Definition def,
int count)
unexpectedCharacterLeftBrace
public static BuilderException unexpectedCharacterLeftBrace(java.io.StreamTokenizer tokenizer)
unexpectedCharacterRightBrace
public static BuilderException unexpectedCharacterRightBrace(java.io.StreamTokenizer tokenizer)
unexpectedWord
public static BuilderException unexpectedWord(java.io.StreamTokenizer tokenizer)
writeError
public static BuilderException writeError(java.io.IOException exception,
java.lang.String writeString)