Class BufferTooSmallException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.lukebemish.brainfrick.lang.runtime.BufferTooSmallException
All Implemented Interfaces:
Serializable

public class BufferTooSmallException extends RuntimeException
An exception thrown to indicate that the buffer of values available when brainfrick attempts to call a callable was too small for the callable in question.
See Also:
  • Field Details

    • required

      public final int required
      The number of values required by the Caller.
    • provided

      public final int provided
      The number of values present on the buffer.
  • Constructor Details

    • BufferTooSmallException

      public BufferTooSmallException(String msg, int required, int provided)
      Creates a new BufferTooSmallException with the given message.
      Parameters:
      msg - The detail message.
      required - The number of values required by the Caller.
      provided - The number of values present on the buffer.