public class UnexpectedElementException
extends java.lang.RuntimeException
Stream.consume(Stream.ElementType...)
,
Serialized FormModifier and Type | Method and Description |
---|---|
Stream.ElementType<?>[] |
getExpectedElementTypes()
Gets the expected element types.
|
int |
getPosition()
Gets the position of the unexpected element.
|
java.lang.Object |
getUnexpectedElement()
Gets the unexpected element.
|
java.lang.String |
toString()
Returns the string representation of this exception
containing the information about the unexpected
element and, if available, about the expected types.
|
public java.lang.Object getUnexpectedElement()
public int getPosition()
public Stream.ElementType<?>[] getExpectedElementTypes()
public java.lang.String toString()
toString
in class java.lang.Throwable