001/* 002 * Copyright 2015-2018 the original author or authors 003 * 004 * This software is licensed under the Apache License, Version 2.0, 005 * the GNU Lesser General Public License version 2 or later ("LGPL") 006 * and the WTFPL. 007 * You may choose either license to govern your use of this software only 008 * upon the condition that you accept all of the terms of either 009 * the Apache License 2.0, the LGPL 2.1+ or the WTFPL. 010 */ 011package org.minidns.iterative; 012 013import org.minidns.MiniDnsException; 014 015public abstract class IterativeClientException extends MiniDnsException { 016 017 /** 018 * 019 */ 020 private static final long serialVersionUID = 1L; 021 022 protected IterativeClientException(String message) { 023 super(message); 024 } 025 026 public static class LoopDetected extends IterativeClientException { 027 028 /** 029 * 030 */ 031 private static final long serialVersionUID = 1L; 032 033 public LoopDetected() { 034 super("Resolution loop detected"); 035 } 036 037 } 038 039 public static class MaxIterativeStepsReached extends IterativeClientException { 040 041 /** 042 * 043 */ 044 private static final long serialVersionUID = 1L; 045 046 public MaxIterativeStepsReached() { 047 super("Maxmimum steps reached"); 048 } 049 050 } 051}