public class InvalidTimestampException extends AuthorizationException
getEarliestTimestamp()
and
getLatestTimestamp()
.AuthorizationException.Reason
Constructor and Description |
---|
InvalidTimestampException(long earliestTimestamp,
long latestTimestamp)
Creates a new instance with the given accepted timestamp range.
|
Modifier and Type | Method and Description |
---|---|
long |
getEarliestTimestamp()
Returns the earliest acceptable timestamp as provided by the server.
|
long |
getLatestTimestamp()
Returns the latest acceptable timestamp as provided by the server.
|
getReason
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidTimestampException(long earliestTimestamp, long latestTimestamp)
earliestTimestamp
- the earliest acceptable timestamp as returned by
the serverlatestTimestamp
- the latest acceptable timestamp as returned by the
serverpublic long getEarliestTimestamp()
public long getLatestTimestamp()
Copyright © 2014. All rights reserved.