Package fitnesse.slim.instructions

Source Code of fitnesse.slim.instructions.InvalidInstruction

package fitnesse.slim.instructions;

import fitnesse.slim.SlimException;
import fitnesse.slim.SlimServer;

import static java.lang.String.format;

public class InvalidInstruction extends Instruction {
  private final String operation;

  public InvalidInstruction(String id, String operation) {
    super(id);
    this.operation = operation;
  }

  @Override
  protected InstructionResult executeInternal(InstructionExecutor executor) throws SlimException {
    throw new SlimException(operation, SlimServer.MALFORMED_INSTRUCTION, true);
  }
}
TOP

Related Classes of fitnesse.slim.instructions.InvalidInstruction

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.