aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/exceptions/MappingNotFoundException.java
blob: 85ac08faa855fd89631008d06be61569ade8e0e2 (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.IMapper;

/**
 * Thrown upon failure to find the requested mapping within a loaded {@link IMapper}.
 */
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));
   }
}