2 * Copyright (c) 2015 Yale University and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.alto.northbound.exception;
11 import javax.ws.rs.core.Response.Status;
13 public class AltoBadFormatException extends AltoBasicException {
15 public static final String TEMPLATE = "Bad %s format: %s";
17 public AltoBadFormatException(String field, String value) {
18 super(Status.BAD_REQUEST, String.format(TEMPLATE, field, value));