Class StepExecutionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.zemco.codegame.execution.engine.StepExecutionException
All Implemented Interfaces:
Serializable

public class StepExecutionException extends RuntimeException
Thrown when an exception is thrown during instruction execution while engine is doing a step.
Author:
Erik Zemčík
See Also:
  • Constructor Details

    • StepExecutionException

      public StepExecutionException(String message, Throwable cause, int linePosition)
      Creates an instance of StepExecutionException.
      Parameters:
      message - detail message containing information about the state of the execution
      cause - exception thrown by instruction during execution
      linePosition - zero-based index of the line that was executed
      Throws:
      IllegalArgumentException - if linePosition is not a positive integer
  • Method Details

    • getLinePosition

      public int getLinePosition()
      Returns the zero-based line position related to the executed instruction.
      Returns:
      zero-based line position