Package com.saxonica.ee.bytecode.util

## Class MessageFromStack

- java.lang.Object
- - com.saxonica.ee.bytecode.util.MessageFromStack

- All Implemented Interfaces:
    `MessageBuilder`

      public class MessageFromStack
      extends java.lang.Object
      implements MessageBuilder

  Helper class to generate a run-time exception using a message that is present at the top of the bytecode stack

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `generateErrorMessage()` | Generate code to construct the error message and leave it on the run-time stack
    `static MessageFromStack` | `getInstance()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getInstance

          public static MessageFromStack getInstance()

    - #### generateErrorMessage

          public void generateErrorMessage()

      Description copied from interface: `MessageBuilder`
      Generate code to construct the error message and leave it on the run-time stack
      Specified by:
        `generateErrorMessage` in interface `MessageBuilder`