1 /* 2 * Copyright (c) 2020 bahlef. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v2.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v20.html 7 * Contributors: 8 * bahlef - implementation and/or initial documentation 9 */ 10 package de.funfried.netbeans.plugins.external.formatter.exceptions; 11 12 /** 13 * {@link RuntimeException} which is thrown when an external formatter 14 * failed to format a given code. 15 * 16 * @author bahlef 17 */ 18 public class FormattingFailedException extends RuntimeException { 19 private static final long serialVersionUID = 1L; 20 21 /** 22 * Creates a new instance of {@link FormattingFailedException}. 23 * 24 * @param message the detail message 25 */ 26 public FormattingFailedException(String message) { 27 super(message); 28 } 29 30 /** 31 * Creates a new instance of {@link FormattingFailedException}. 32 * 33 * @param cause the original cause of the exception 34 */ 35 public FormattingFailedException(Throwable cause) { 36 super(cause); 37 } 38 }