Bug 6859 #3 Binding generator v1 refactoring
[mdsal.git] / binding / mdsal-binding-generator-impl / src / main / java / org / opendaylight / mdsal / binding / generator / impl / TransformerGeneratorException.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. 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 package org.opendaylight.mdsal.binding.generator.impl;
9
10 final class TransformerGeneratorException extends RuntimeException {
11     private static final long serialVersionUID = 1L;
12
13     public TransformerGeneratorException(final String message, final Throwable cause) {
14         super(message, cause);
15     }
16
17     public static TransformerGeneratorException wrap(final Class<?> cls, final Throwable cause) throws TransformerGeneratorException {
18         return new TransformerGeneratorException(String.format("Failed to generate for type %s", cls), cause);
19     }
20 }