Interface AuthChallengeCompleteEvent.Result.Error.Generic
- 
- All Superinterfaces:
- AuthChallengeCompleteEvent.Result,- AuthChallengeCompleteEvent.Result.Error
 - Enclosing interface:
- AuthChallengeCompleteEvent.Result.Error
 
 public static interface AuthChallengeCompleteEvent.Result.Error.Generic extends AuthChallengeCompleteEvent.Result.Error Representation of the result of an authentication challenge which failed due to a generic error.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.inductiveautomation.perspective.gateway.api.AuthChallengeCompleteEvent.ResultAuthChallengeCompleteEvent.Result.Error, AuthChallengeCompleteEvent.Result.Success
 - 
Nested classes/interfaces inherited from interface com.inductiveautomation.perspective.gateway.api.AuthChallengeCompleteEvent.Result.ErrorAuthChallengeCompleteEvent.Result.Error.Cancelled, AuthChallengeCompleteEvent.Result.Error.Generic, AuthChallengeCompleteEvent.Result.Error.Timeout
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AuthChallengeCompleteEvent.Result.Error.CancelledgetAsCancelled()Always throws anUnsupportedOperationExceptionsince this is aAuthChallengeCompleteEvent.Result.Error.Genericerror resultdefault AuthChallengeCompleteEvent.Result.Error.GenericgetAsGeneric()default AuthChallengeCompleteEvent.Result.Error.TimeoutgetAsTimeout()Always throws anUnsupportedOperationExceptionsince this is aAuthChallengeCompleteEvent.Result.Error.Genericerror resultjava.util.Optional<java.lang.String>getMessage()default booleanisCancelled()default booleanisGeneric()default booleanisTimeout()- 
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.AuthChallengeCompleteEvent.Result.ErrorgetAsError, getAsSuccess, isError, isSuccess
 
- 
 
- 
- 
- 
Method Detail- 
isGenericdefault boolean isGeneric() - Specified by:
- isGenericin interface- AuthChallengeCompleteEvent.Result.Error
- Returns:
- true since this AuthChallengeCompleteEvent.Result.Errorresult is generic
 
 - 
isTimeoutdefault boolean isTimeout() - Specified by:
- isTimeoutin interface- AuthChallengeCompleteEvent.Result.Error
- Returns:
- false since this AuthChallengeCompleteEvent.Result.Errorresult is generic
 
 - 
isCancelleddefault boolean isCancelled() - Specified by:
- isCancelledin interface- AuthChallengeCompleteEvent.Result.Error
- Returns:
- false since this AuthChallengeCompleteEvent.Result.Errorresult is generic
 
 - 
getAsGenericdefault AuthChallengeCompleteEvent.Result.Error.Generic getAsGeneric() - Specified by:
- getAsGenericin interface- AuthChallengeCompleteEvent.Result.Error
- Returns:
- this AuthChallengeCompleteEvent.Result.Errorresult typed asAuthChallengeCompleteEvent.Result.Error.Generic
 
 - 
getAsTimeoutdefault AuthChallengeCompleteEvent.Result.Error.Timeout getAsTimeout() Always throws anUnsupportedOperationExceptionsince this is aAuthChallengeCompleteEvent.Result.Error.Genericerror result- Specified by:
- getAsTimeoutin interface- AuthChallengeCompleteEvent.Result.Error
- 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. CheckAuthChallengeCompleteEvent.Result.Error.isTimeout()before calling this method to ensure you get the correct result type.
 
 - 
getAsCancelleddefault AuthChallengeCompleteEvent.Result.Error.Cancelled getAsCancelled() Always throws anUnsupportedOperationExceptionsince this is aAuthChallengeCompleteEvent.Result.Error.Genericerror result- Specified by:
- getAsCancelledin interface- AuthChallengeCompleteEvent.Result.Error
- 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. CheckAuthChallengeCompleteEvent.Result.Error.isCancelled()before calling this method to ensure you get the correct result type.
 
 - 
getMessagejava.util.Optional<java.lang.String> getMessage() - Returns:
- an Optionalcontaining a diagnostic message pertaining to the generic error, or an empty Optional if such a message is not available
 
 
- 
 
-