Class ServiceNotAuthorizedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.jgit.transport.resolver.ServiceNotAuthorizedException
-
- All Implemented Interfaces:
Serializable
public class ServiceNotAuthorizedException extends Exception
Indicates that the requested service requires authentication that the current user has not provided.This corresponds to response code
HttpServletResponse.SC_UNAUTHORIZED
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceNotAuthorizedException()
Indicates that the requested service requires authentication.ServiceNotAuthorizedException(String message)
Constructor for ServiceNotAuthorizedException.ServiceNotAuthorizedException(String message, Throwable cause)
Constructor for ServiceNotAuthorizedException.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ServiceNotAuthorizedException
public ServiceNotAuthorizedException(String message, Throwable cause)
Constructor for ServiceNotAuthorizedException.- Parameters:
message
- error messagecause
- aThrowable
object.- Since:
- 4.1
-
ServiceNotAuthorizedException
public ServiceNotAuthorizedException(String message)
Constructor for ServiceNotAuthorizedException.- Parameters:
message
- error message- Since:
- 4.1
-
ServiceNotAuthorizedException
public ServiceNotAuthorizedException()
Indicates that the requested service requires authentication.
-
-