Package wt.method
Class AuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Error
wt.method.AuthenticationException
- All Implemented Interfaces:
Serializable
An unchecked exception thrown by the method server when an unauthenticated call requires
authentication. The exception may carry with it a
MethodAuthenticator object
which is used to authenticate subsequent requests. Usually, this exception is caught within
the RemoteMethodServer.invoke method and used to perform login followed by
retrying the failed call.
The method server can process annonymous calls, so it does not require calls to be
authenticated up front. The first time a method asks for the authenticated user
name of the client, this exception will be thrown causing login at that time.
It extends Error so that all levels of intervening methods do not need to
declare this exception in their throws clause and also to avoid accidentally
being caught and handled by intervening methods that catch standard Exceptions
(including RuntimeException).
Supported API: true
Extendable: false
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationException(MethodAuthenticator method_authenticator)
Supported API: true -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AuthenticationException
Supported API: true
-