99b9bb4ea134d4f9f6252f4823e90823557c3539
[alto.git] / alto-northbound / src / main / java / org / opendaylight / alto / northbound / exception / AltoBadFormatException.java
1 package org.opendaylight.alto.northbound.exception;
2
3 import javax.ws.rs.core.Response.Status;
4
5 public class AltoBadFormatException extends AltoBasicException {
6
7     public static final String TEMPLATE = "Bad %s format: %s";
8
9     public AltoBadFormatException(String field, String value) {
10         super(Status.BAD_REQUEST, String.format(TEMPLATE, field, value));
11     }
12 }