RouteNotFoundException.java

  1. package org.heigit.ors.exceptions;

  2. import org.heigit.ors.common.StatusCode;

  3. public class RouteNotFoundException extends StatusCodeException {

  4.     private static final long serialVersionUID = 3965768339351489620L;

  5.     public RouteNotFoundException(int errorCode, String message) {
  6.         super(StatusCode.NOT_FOUND, errorCode, "Route could not be found - " + message);
  7.     }

  8.     public RouteNotFoundException(int errorCode) {
  9.         this(errorCode, "");
  10.     }

  11.     public RouteNotFoundException() {
  12.         this(0);
  13.     }
  14. }