Module com.github.rvesse.airline
Class ParseAliasCircularReferenceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.rvesse.airline.parser.errors.ParseException
-
- com.github.rvesse.airline.parser.errors.ParseAliasCircularReferenceException
-
- All Implemented Interfaces:
java.io.Serializable
public class ParseAliasCircularReferenceException extends ParseException
Exception that occurs when alias chaining is enabled and a circular reference is encountered- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
offendingAlias
private java.util.Set<java.lang.String>
referenceChain
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ParseAliasCircularReferenceException(java.lang.String alias, java.util.Set<java.lang.String> referenceChain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getAliasChain()
Gets the chain of alias resolutions that led to the circular referencejava.lang.String
getOffendingAlias()
Gets the alias that was encountered that is a circular reference
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
offendingAlias
private final java.lang.String offendingAlias
-
referenceChain
private final java.util.Set<java.lang.String> referenceChain
-
-
Method Detail
-
getOffendingAlias
public java.lang.String getOffendingAlias()
Gets the alias that was encountered that is a circular reference- Returns:
- Offending alias
-
getAliasChain
public java.util.Set<java.lang.String> getAliasChain()
Gets the chain of alias resolutions that led to the circular reference- Returns:
- Alias chain
-
-