private static SimException illegalTos() {
    return new SimException("stack mismatch: illegal " + "top-of-stack for opcode");
  }
Constructs an "illegal top-of-stack" exception, for the stack manipulation opcodes.
android/android_framework/dex-maker/src/main/java/com/android/dx/cf/code/Simulator.java