aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/exceptions/MalformedMappingsException.java
blob: 2e2fd0ea02394e322b3fcf6998644e01fc1a8c02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package ftbsc.lll.exceptions;

/**
 * Thrown when something goes wrong while parsing a mappings file.
 */
public class MalformedMappingsException extends RuntimeException {

   /**
    * Constructs a new {@link MalformedMappingsException} given the line number
    * and an error message.
    * @param lineNumber the line the error occurred at
    * @param error the error message
    */
   public MalformedMappingsException(int lineNumber, String error) {
      super(String.format("Unexpected token at line %d: %s!", lineNumber, error));
   }
}