Class ScriptInterpretationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
technology.sola.script.error.ScriptInterpretationException
All Implemented Interfaces:
Serializable

@NullMarked public class ScriptInterpretationException extends RuntimeException
ScriptErrorException is a runtime exception that is thrown while trying to interpret a sola script containing information about the ScriptErrorType cause and the Token it was found at.
See Also:
  • Field Details

    • token

      public final Token token
      The Token where the error occurred.
    • errorType

      public final ScriptErrorType errorType
      The ScriptErrorType of the error.
    • errorsArgs

      public final Object[] errorsArgs
      The additional details about the error.
  • Constructor Details

    • ScriptInterpretationException

      public ScriptInterpretationException(Token token, ScriptErrorType errorType, Object... errorsArgs)
      Creates an instance of this exception.
      Parameters:
      token - the Token where the error occurred
      errorType - the ScriptErrorType of the error
      errorsArgs - the additional details about the error