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.Result
AuthChallengeCompleteEvent.Result.Error, AuthChallengeCompleteEvent.Result.Success
Nested classes/interfaces inherited from interface com.inductiveautomation.perspective.gateway.api.AuthChallengeCompleteEvent.Result.Error
AuthChallengeCompleteEvent.Result.Error.Cancelled, AuthChallengeCompleteEvent.Result.Error.Generic, AuthChallengeCompleteEvent.Result.Error.Timeout
-
Method Summary
Modifier and TypeMethodDescriptionAlways throws anUnsupportedOperationException
since this is aAuthChallengeCompleteEvent.Result.Error.Generic
error resultAlways throws anUnsupportedOperationException
since this is aAuthChallengeCompleteEvent.Result.Error.Generic
error resultdefault boolean
default boolean
default boolean
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.AuthChallengeCompleteEvent.Result.Error
getAsError, getAsSuccess, isError, isSuccess
-
Method Details
-
isGeneric
default boolean isGeneric()- Specified by:
isGeneric
in interfaceAuthChallengeCompleteEvent.Result.Error
- Returns:
- true since this
AuthChallengeCompleteEvent.Result.Error
result is generic
-
isTimeout
default boolean isTimeout()- Specified by:
isTimeout
in interfaceAuthChallengeCompleteEvent.Result.Error
- Returns:
- false since this
AuthChallengeCompleteEvent.Result.Error
result is generic
-
isCancelled
default boolean isCancelled()- Specified by:
isCancelled
in interfaceAuthChallengeCompleteEvent.Result.Error
- Returns:
- false since this
AuthChallengeCompleteEvent.Result.Error
result is generic
-
getAsGeneric
- Specified by:
getAsGeneric
in interfaceAuthChallengeCompleteEvent.Result.Error
- Returns:
- this
AuthChallengeCompleteEvent.Result.Error
result typed asAuthChallengeCompleteEvent.Result.Error.Generic
-
getAsTimeout
Always throws anUnsupportedOperationException
since this is aAuthChallengeCompleteEvent.Result.Error.Generic
error result- Specified by:
getAsTimeout
in interfaceAuthChallengeCompleteEvent.Result.Error
- Returns:
- this
AuthChallengeCompleteEvent.Result.Error
object typed as aAuthChallengeCompleteEvent.Result.Error.Timeout
object if this error is due to a timeout, otherwise throws anUnsupportedOperationException
if this error is not due to a timeout. CheckAuthChallengeCompleteEvent.Result.Error.isTimeout()
before calling this method to ensure you get the correct result type.
-
getAsCancelled
Always throws anUnsupportedOperationException
since this is aAuthChallengeCompleteEvent.Result.Error.Generic
error result- Specified by:
getAsCancelled
in interfaceAuthChallengeCompleteEvent.Result.Error
- Returns:
- this
AuthChallengeCompleteEvent.Result.Error
object typed as aAuthChallengeCompleteEvent.Result.Error.Cancelled
object if this error is due to the user cancelling the authentication challenge, otherwise throws anUnsupportedOperationException
if 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.
-
getMessage
- Returns:
- an
Optional
containing a diagnostic message pertaining to the generic error, or an empty Optional if such a message is not available
-