Package org.jmol.script
Class ScriptError
java.lang.Object
org.jmol.script.ScriptError
- All Implemented Interfaces:
JmolScriptEvaluator
- Direct Known Subclasses:
ScriptParam
Error handling for ScriptEvaluator, ScriptProcess, and ScriptParams
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
protected boolean
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected String
protected String
protected String
protected int
boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
bad()
void
error
(int iError) void
void
void
static String
getErrorLineMessage
(String functionName, String filename, int lineCurrent, int pcCurrent, String lineInfo) void
integerOutOfRange
(int min, int max) void
invArg()
void
protected void
numberOutOfRange
(float min, float max) void
setCursorWait
(boolean TF) protected void
setErrorMessage
(String err) protected abstract void
showStringPrint
(String msg, boolean mustDo) protected void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jmol.api.JmolScriptEvaluator
checkScriptSilent, checkSelect, compileScriptString, deleteAtomsInVariables, evalFunctionFloat, evalParallel, evaluateCompiledScript, evaluateExpression, getAllowJSThreads, getAtomBitSet, getNextStatement, getScript, getScriptContext, getThisContext, haltExecution, isExecuting, isPaused, isStateScript, isStepping, isStopped, loadFileResourceAsync, notifyResumeStatus, pauseExecution, pushContextDown, resumeEval, resumePausedExecution, runScript, runScriptBuffer, setCompiler, setDebugging, setObjectPropSafe, setStatic, setViewer, stepPausedExecution, stopScriptThreads
-
Field Details
-
vwr
-
chk
public boolean chk -
ignoreError
public boolean ignoreError -
error
protected boolean error -
errorMessage
-
errorMessageUntranslated
-
errorType
-
iCommandError
protected int iCommandError -
ERROR_badArgumentCount
public static final int ERROR_badArgumentCount- See Also:
-
ERROR_badRGBColor
public static final int ERROR_badRGBColor- See Also:
-
ERROR_endOfStatementUnexpected
public static final int ERROR_endOfStatementUnexpected- See Also:
-
ERROR_expressionExpected
public static final int ERROR_expressionExpected- See Also:
-
ERROR_expressionOrIntegerExpected
public static final int ERROR_expressionOrIntegerExpected- See Also:
-
ERROR_fileNotFoundException
public static final int ERROR_fileNotFoundException- See Also:
-
ERROR_incompatibleArguments
public static final int ERROR_incompatibleArguments- See Also:
-
ERROR_insufficientArguments
public static final int ERROR_insufficientArguments- See Also:
-
ERROR_invalidArgument
public static final int ERROR_invalidArgument- See Also:
-
ERROR_invalidParameterOrder
public static final int ERROR_invalidParameterOrder- See Also:
-
ERROR_keywordExpected
public static final int ERROR_keywordExpected- See Also:
-
ERROR_moCoefficients
public static final int ERROR_moCoefficients- See Also:
-
ERROR_moIndex
public static final int ERROR_moIndex- See Also:
-
ERROR_moModelError
public static final int ERROR_moModelError- See Also:
-
ERROR_moOccupancy
public static final int ERROR_moOccupancy- See Also:
-
ERROR_moOnlyOne
public static final int ERROR_moOnlyOne- See Also:
-
ERROR_multipleModelsDisplayedNotOK
public static final int ERROR_multipleModelsDisplayedNotOK- See Also:
-
ERROR_noData
public static final int ERROR_noData- See Also:
-
ERROR_noPartialCharges
public static final int ERROR_noPartialCharges- See Also:
-
ERROR_numberExpected
public static final int ERROR_numberExpected- See Also:
-
ERROR_what
public static final int ERROR_what- See Also:
-
ERROR_writeWhat
public static final int ERROR_writeWhat- See Also:
-
ERROR_cannotSet
public static final int ERROR_cannotSet- See Also:
-
ERROR_operationCanceled
public static final int ERROR_operationCanceled- See Also:
-
-
Constructor Details
-
ScriptError
public ScriptError()
-
-
Method Details
-
showStringPrint
-
getErrorMessage
- Specified by:
getErrorMessage
in interfaceJmolScriptEvaluator
-
getErrorMessageUntranslated
- Specified by:
getErrorMessageUntranslated
in interfaceJmolScriptEvaluator
-
invArg
- Throws:
ScriptException
-
invArgStr
- Throws:
ScriptException
-
bad
- Throws:
ScriptException
-
integerOutOfRange
- Throws:
ScriptException
-
numberOutOfRange
- Throws:
ScriptException
-
error
- Throws:
ScriptException
-
errorStr
- Throws:
ScriptException
-
errorStr2
- Throws:
ScriptException
-
warning
- Throws:
ScriptException
-
evalError
- Throws:
ScriptException
-
setCursorWait
public void setCursorWait(boolean TF) -
getErrorLineMessage
-
setErrorMessage
-