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
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBufferTooSmallException
(String msg, int required, int provided) Creates a newBufferTooSmallException
with the given message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
required
public final int requiredThe number of values required by theCaller
. -
provided
public final int providedThe number of values present on the buffer.
-
-
Constructor Details
-
BufferTooSmallException
Creates a newBufferTooSmallException
with the given message.- Parameters:
msg
- The detail message.required
- The number of values required by theCaller
.provided
- The number of values present on the buffer.
-