Add missing license headers in alto-northbound
[alto.git] / alto-northbound / src / main / java / org / opendaylight / alto / northbound / exception / AltoBadFormatException.java
1 /*
2  * Copyright (c) 2015 Yale University and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.alto.northbound.exception;
10
11 import javax.ws.rs.core.Response.Status;
12
13 public class AltoBadFormatException extends AltoBasicException {
14
15     public static final String TEMPLATE = "Bad %s format: %s";
16
17     public AltoBadFormatException(String field, String value) {
18         super(Status.BAD_REQUEST, String.format(TEMPLATE, field, value));
19     }
20 }