001/* 002 * Configurate 003 * Copyright (C) zml and Configurate contributors 004 * 005 * Licensed under the Apache License, Version 2.0 (the "License"); 006 * you may not use this file except in compliance with the License. 007 * You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.spongepowered.configurate.reactive; 018 019/** 020 * Indicate that the newly submitted value was invalid, and the transaction that 021 * submitted the new value should be marked as a failure. 022 * 023 * @since 4.0.0 024 */ 025public class TransactionFailedException extends Exception { 026 027 private static final long serialVersionUID = -3726752009864775844L; 028 029 /** 030 * Create an exception indicating a transaction has failed for an 031 * unknown reason. 032 * 033 * @since 4.0.0 034 */ 035 public TransactionFailedException() { 036 } 037 038 /** 039 * Create an exception wrapping the cause of a transaction failure. 040 * 041 * @param cause the original exception cause 042 * @since 4.0.0 043 */ 044 public TransactionFailedException(final Throwable cause) { 045 super(cause); 046 } 047 048}