Interface AuthChallengeCompleteEvent.Result.Error
- 
- All Superinterfaces:
- AuthChallengeCompleteEvent.Result
 - All Known Subinterfaces:
- AuthChallengeCompleteEvent.Result.Error.Cancelled,- AuthChallengeCompleteEvent.Result.Error.Generic,- AuthChallengeCompleteEvent.Result.Error.Timeout
 - Enclosing interface:
- AuthChallengeCompleteEvent.Result
 
 public static interface AuthChallengeCompleteEvent.Result.Error extends AuthChallengeCompleteEvent.Result Representation of a failed authentication challenge result.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceAuthChallengeCompleteEvent.Result.Error.CancelledRepresentation of the result of an authentication challenge which failed due to the user cancelling the authentication challenge.static interfaceAuthChallengeCompleteEvent.Result.Error.GenericRepresentation of the result of an authentication challenge which failed due to a generic error.static interfaceAuthChallengeCompleteEvent.Result.Error.TimeoutRepresentation of the result of an authentication challenge which failed due to a timeout.- 
Nested classes/interfaces inherited from interface com.inductiveautomation.perspective.gateway.api.AuthChallengeCompleteEvent.ResultAuthChallengeCompleteEvent.Result.Error, AuthChallengeCompleteEvent.Result.Success
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AuthChallengeCompleteEvent.Result.Error.CancelledgetAsCancelled()default AuthChallengeCompleteEvent.Result.ErrorgetAsError()AuthChallengeCompleteEvent.Result.Error.GenericgetAsGeneric()default AuthChallengeCompleteEvent.Result.SuccessgetAsSuccess()Always throws anUnsupportedOperationExceptionsince thisAuthChallengeCompleteEvent.Resultrepresents an errorAuthChallengeCompleteEvent.Result.Error.TimeoutgetAsTimeout()booleanisCancelled()default booleanisError()booleanisGeneric()default booleanisSuccess()booleanisTimeout()
 
- 
- 
- 
Method Detail- 
isSuccessdefault boolean isSuccess() - Specified by:
- isSuccessin interface- AuthChallengeCompleteEvent.Result
- Returns:
- false since this AuthChallengeCompleteEvent.Resultrepresents an error
 
 - 
isErrordefault boolean isError() - Specified by:
- isErrorin interface- AuthChallengeCompleteEvent.Result
- Returns:
- true since this AuthChallengeCompleteEvent.Resultrepresents an error
 
 - 
getAsSuccessdefault AuthChallengeCompleteEvent.Result.Success getAsSuccess() Always throws anUnsupportedOperationExceptionsince thisAuthChallengeCompleteEvent.Resultrepresents an error- Specified by:
- getAsSuccessin interface- AuthChallengeCompleteEvent.Result
- Returns:
- the result as a AuthChallengeCompleteEvent.Result.Successobject if the result is successful, otherwise throws anUnsupportedOperationExceptionif the result is an error. CheckAuthChallengeCompleteEvent.Result.isSuccess()orAuthChallengeCompleteEvent.Result.isError()before calling this method to ensure you get the correct result type.
 
 - 
getAsErrordefault AuthChallengeCompleteEvent.Result.Error getAsError() - Specified by:
- getAsErrorin interface- AuthChallengeCompleteEvent.Result
- Returns:
- this AuthChallengeCompleteEvent.Resulttyped asAuthChallengeCompleteEvent.Result.Error
 
 - 
isGenericboolean isGeneric() - Returns:
- true if the error is generic (in other words: a catch-all error scenario which is not specific).
 Call getAsGeneric()to get thisAuthChallengeCompleteEvent.Result.Errorobject typed as aAuthChallengeCompleteEvent.Result.Error.Genericobject for access to methods which provide specific details pertaining to the generic error.
 
 - 
isTimeoutboolean isTimeout() - Returns:
- true if the error is due to a timeout. Call getAsTimeout()to get thisAuthChallengeCompleteEvent.Result.Errorobject typed as aAuthChallengeCompleteEvent.Result.Error.Timeoutobject for access to methods which provide specific details pertaining to the timeout error.
 
 - 
isCancelledboolean isCancelled() - Returns:
- true if the error is due to the user cancelling the authentication challenge. Call getAsCancelled()to get thisAuthChallengeCompleteEvent.Result.Errorobject typed as aAuthChallengeCompleteEvent.Result.Error.Cancelledobject for access to methods which provide specific details pertaining to the cancelled error.
 
 - 
getAsGenericAuthChallengeCompleteEvent.Result.Error.Generic getAsGeneric() - Returns:
- this AuthChallengeCompleteEvent.Result.Errorobject typed as aAuthChallengeCompleteEvent.Result.Error.Genericobject if this error is generic, otherwise throws anUnsupportedOperationExceptionif this error is not generic. CheckisGeneric()before calling this method to ensure you get the correct result type.
 
 - 
getAsTimeoutAuthChallengeCompleteEvent.Result.Error.Timeout getAsTimeout() - Returns:
- this AuthChallengeCompleteEvent.Result.Errorobject typed as aAuthChallengeCompleteEvent.Result.Error.Timeoutobject if this error is due to a timeout, otherwise throws anUnsupportedOperationExceptionif this error is not due to a timeout. CheckisTimeout()before calling this method to ensure you get the correct result type.
 
 - 
getAsCancelledAuthChallengeCompleteEvent.Result.Error.Cancelled getAsCancelled() - Returns:
- this AuthChallengeCompleteEvent.Result.Errorobject typed as aAuthChallengeCompleteEvent.Result.Error.Cancelledobject if this error is due to the user cancelling the authentication challenge, otherwise throws anUnsupportedOperationExceptionif this error is not due to the user cancelling the authentication challenge. CheckisCancelled()before calling this method to ensure you get the correct result type.
 
 
- 
 
-