public class UnexpectedElementException extends 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.
|
Object |
getUnexpectedElement()
Gets the unexpected element.
|
String |
toString()
Returns the string representation of this exception
containing the information about the unexpected
element and, if available, about the expected types.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public Object getUnexpectedElement()
public int getPosition()
public Stream.ElementType<?>[] getExpectedElementTypes()
Copyright © 2015. All rights reserved.