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

import ftbsc.lll.mapper.IMappingFormat;

/**
 * Thrown upon failure to find the requested mapping within a loaded {@link IMappingFormat}.
 */
public class MappingNotFoundException extends RuntimeException {

   /**
    * Constructs a new mapping not found exception for the specified mapping.
    * @param type the type of mapping
    * @param mapping the relevant mapping
    */
   public MappingNotFoundException(String type, String mapping) {
      super(String.format("Could not find mapping for %s %s!", type, mapping));
   }
}