summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/exceptions/InstructionMismatchException.java
blob: ff04ef6b1a074b3e4f9adcc1708fcbf58dc5c396 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package ftbsc.lll.exceptions;

import ftbsc.lll.utils.InsnSequence;

/**
 * Thrown when attempting to build an {@link InsnSequence} between two
 * unconnected nodes.
 */
public class InstructionMismatchException extends RuntimeException {
   /**
    * Constructs a new instruction mismatch exception with the specified detail message.
    * @param message the detail message
    */
   public InstructionMismatchException(String message) {
      super(message);
   }

   /**
    * Constructs a new instruction mismatch exception with the specified detail message and cause.
    * @param  message the detail message
    * @param  cause the cause, may be null (indicating nonexistent or unknown cause)
    */
   public InstructionMismatchException(String message, Throwable cause) {
      super(message, cause);
   }

   /**
    * Constructs a new instruction mismatch exception with the specified cause and a
    * detail message of {@code (cause==null ? null : cause.toString())}
    * @param  cause the cause, may be null (indicating nonexistent or unknown cause)
    */
   public InstructionMismatchException(Throwable cause) {
      super(cause);
   }
}