VnanoException Class Specification
(org.vcssl.nano.VnanoException)


Abstract

The exception class thrown when non-fatal errors, which should be catched and handled by the application-side, are detected.

For example, this exception will be thrown when any syntax error has been detected in the inputted script, or when the error(...) function has been called from the inputted script, or other callee functions have thrown errors, and so on.

See also: the document of VnanoFatalException.

List of Public Constructors/Fields/Methods

VnanoException(Throwable errorCauseThrowable)
Creates the VnanoException wrapping the specified Throwable.
VnanoException(ErrorType errorType)
Creates the VnanoException of the specified error type.
VnanoException(ErrorType errorType, Throwable cause)
Creates the VnanoException of the specified error type, having the cause information.
VnanoException(ErrorType errorType, String fileName, int lineNumber)
Creates the VnanoException of the specified error type, having the cause file name / line number.
VnanoException(ErrorType errorType, String errorWord)
Creates the VnanoException of the specified error type, having the keyword which will be embedded in the error message.
VnanoException(ErrorType errorType, String[] errorWords)
Creates the VnanoException of the specified error type, having the keywords which will be embedded in the error message.
VnanoException(ErrorType errorType, String errorWord, Throwable cause)
Creates the VnanoException of the specified error type, having the cause information.
VnanoException(ErrorType errorType, String[] errorWords, Throwable cause)
Creates the VnanoException of the specified error type, having the keyword which will be embedded in the error message, and the cause information.
VnanoException(ErrorType errorType, String[] errorWords, String fileName, int lineNumber)
Creates the VnanoException of the specified error type, having the keyword which will be embedded in the error message, and the cause file name / line number.
VnanoException(ErrorType errorType, String[] errorWords, Throwable cause, String fileName, int lineNumber)
Creates the VnanoException of the specified error type, with specifying the various detailed information.
ErrorType getErrorType()
Gets the element of org.vcssl.nano.spec.ErrorType enum, representing the error type of this VnanoException.
void getErrorType(ErrorType errorType)
Sets the element of org.vcssl.nano.spec.ErrorType enum, representing the error type of this VnanoException.
String[] getErrorWords()
Gets the keywords which will be embedded in the error mesage.
void getErrorWords(setErrorWords errorWords)
Sets the keywords which will be embedded in the error mesage.
boolean hasFileName()
Returns whether this instance has the script file name of the cause of the error.
String getFileName()
Gets the script file name of the cause of the error.
void setFileName(String fileName)
Sets the script file name of the cause of the error.
boolean hasLineNumber()
Returns whether this instance has the line number of the cause of the error.
int getLineNumber()
Gets the line number of the cause of the error.
void setLineNumber(int lineNumber)
Sets the line number of the cause of the error.
void setLocale(Locale locale)
Sets the Locale to determin the language of the error message.
String getMessage()
Gets the error message.
String getMessageWithoutLocation()
Gets the error message, which does not contain the script file name and the line number of the cause.

Public Constructors

Name VnanoException
Signature VnanoException(Throwable errorCauseThrowable)
Description Creates the VnanoException wrapping the specified Throwable.
Parameters errorCauseThrowable: The Throwable of the cause.
Return The created VnanoException.
Name VnanoException
Signature VnanoException(ErrorType errorType)
Description Creates the VnanoException of the specified error type.
Parameters errorType: The element of org.vcssl.nano.spec.ErrorType enum, representing the type of the error.
Return The created VnanoException.
Name VnanoException
Signature VnanoException(ErrorType errorType, Throwable cause)
Description Creates the VnanoException of the specified error type, having the cause information.
Parameters errorType: The element of org.vcssl.nano.spec.ErrorType enum, representing the type of the error.
errorCauseThrowable: The Throwable of the cause.
Return The created VnanoException.
Name VnanoException
Signature VnanoException(ErrorType errorType, String fileName, int lineNumber)
Description Creates the VnanoException of the specified error type, having the cause file name / line number.
Parameters errorType: The element of org.vcssl.nano.spec.ErrorType enum, representing the type of the error.
The script file name of the cause.
lineNumber: The line number of the cause.
Return The created VnanoException.
Name VnanoException
Signature VnanoException(ErrorType errorType, String errorWord)
Description Creates the VnanoException of the specified error type, having the keyword which will be embedded in the error message.
Parameters errorType: The element of org.vcssl.nano.spec.ErrorType enum, representing the type of the error.
errorWord: The keyword to be embedded in the error message.
Return The created VnanoException.
Name VnanoException
Signature VnanoException(ErrorType errorType, String[] errorWords)
Description Creates the VnanoException of the specified error type, having the keywords which will be embedded in the error message.
Parameters errorType: The element of org.vcssl.nano.spec.ErrorType enum, representing the type of the error.
errorWords[]: The keywords to be embedded in the error message.
The script file name of the cause.
lineNumber: The line number of the cause.
Return The created VnanoException.
Name VnanoException
Signature VnanoException(ErrorType errorType, String errorWord, Throwable cause)
Description Creates the VnanoException of the specified error type, having the cause information.
Parameters errorType: The element of org.vcssl.nano.spec.ErrorType enum, representing the type of the error.
errorWord: The keyword to be embedded in the error message.
cause: The Throwable of the cause.
Return The created VnanoException.
Name VnanoException
Signature VnanoException(ErrorType errorType, String[] errorWords, Throwable cause)
Description Creates the VnanoException of the specified error type, having the keyword which will be embedded in the error message, and the cause information.
Parameters errorType: The element of org.vcssl.nano.spec.ErrorType enum, representing the type of the error.
errorWords[]: The keywords to be embedded in the error message.
cause: The Throwable of the cause.
Return The created VnanoException.
Name VnanoException
Signature VnanoException(ErrorType errorType, String[] errorWords, String fileName, int lineNumber)
Description Creates the VnanoException of the specified error type, having the keyword which will be embedded in the error message, and the cause file name / line number.
Parameters errorType: The element of org.vcssl.nano.spec.ErrorType enum, representing the type of the error.
errorWords[]: The keywords to be embedded in the error message.
Return The created VnanoException.
Name VnanoException
Signature VnanoException(ErrorType errorType, String[] errorWords, Throwable cause, String fileName, int lineNumber)
Description Creates the VnanoException of the specified error type, with specifying the various detailed information.
Parameters errorType: The element of org.vcssl.nano.spec.ErrorType enum, representing the type of the error.
errorWords[]: The keywords to be embedded in the error message.
cause: The Throwable of the cause.
The script file name of the cause.
lineNumber: The line number of the cause.
Return The created VnanoException.

Public Fields

- None -

Public Methods

Name getErrorType
Signature ErrorType getErrorType()
Description Returns the element of org.vcssl.nano.spec.ErrorType enum, representing the type of the error.
Parameters None
Return The element of org.vcssl.nano.spec.ErrorType enum, representing the type of the error.
Exception None
Name setErrorType
Signature void getErrorType(ErrorType errorType)
Description Sets the element of org.vcssl.nano.spec.ErrorType enum, representing the type of the error.
Parameters errorType: the element of org.vcssl.nano.spec.ErrorType enum, representing the type of the error.
Return None
Exception None
Name getErrorWords
Signature String[] getErrorWords()
Description Gets the keyword which will be embedded in the error message.
Parameters None
Return The keyword which will be embedded in the error message.
Exception None
Name setErrorWords
Signature void getErrorWords(setErrorWords errorWords)
Description Sets the keyword which will be embedded in the error message.
Parameters errorWords: The keyword which will be embedded in the error message.
Return None
Exception None
Name hasFileName
Signature boolean hasFileName()
Description Returns whether this instance has the script file name of the cause of the error.
Parameters None
Return Returns true if this instance has the script file name of the cause.
Exception None
Name getFileName
Signature String getFileName()
Description Gets the script file name of the cause of the error.
Parameters None
Return The script file name of the cause of the error.
Exception None
Name setFileName
Signature void setFileName(String fileName)
Description Sets the script file name of the cause of the error.
Parameters None
Return The script file name of the cause of the error.
Exception None
Name hasLineNumber
Signature boolean hasLineNumber()
Description Returns whether this instance has the line number of the cause of the error.
Parameters None
Return Returns true if this instance has the line number of the cause of the error.
Exception None
Name getLineNumber
Signature int getLineNumber()
Description Gets the line number of the cause of the error.
Parameters None
Return The line number of the cause.
Exception None
Name setLineNumber
Signature void setLineNumber(int lineNumber)
Description Sets the line number of the cause of the error.
Parameters lineNumber: The line number of the cause.
Return None
Exception None
Name setLocale
Signature void setLocale(Locale locale)
Description Sets the Locale to determin the language of the error message.
Parameters locale: The locale to determin the language of the error message.
Return None
Exception None
Name getMessage
Signature String getMessage()
Description Gets the error message.
Parameters None
Return The error message.
Exception None
Name getMessageWithoutLocation
Signature String getMessageWithoutLocation()
Description Gets the error message, which does not contain the script file name and the line number of the cause.
Parameters None
Return The error message (without the script file name and the line number).
Exception None