2 * Copyright (c) 2014 Cisco Systems, Inc. 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
8 package org.opendaylight.mdsal.binding.generator.impl;
10 final class TransformerGeneratorException extends RuntimeException {
11 private static final long serialVersionUID = 1L;
13 TransformerGeneratorException(final String message, final Throwable cause) {
14 super(message, cause);
17 static TransformerGeneratorException wrap(final Class<?> cls, final Throwable cause)
18 throws TransformerGeneratorException {
19 return new TransformerGeneratorException(String.format("Failed to generate for type %s", cls), cause);