Class ServiceAuthException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ai.wanaku.capabilities.sdk.api.exceptions.WanakuException
ai.wanaku.cli.main.support.security.ServiceAuthException
- All Implemented Interfaces:
Serializable
public class ServiceAuthException
extends ai.wanaku.capabilities.sdk.api.exceptions.WanakuException
Exception thrown when service authentication fails in the Wanaku capabilities SDK.
This exception is used to indicate authentication-related failures when attempting to authenticate with services, including invalid credentials, expired tokens, insufficient permissions, or other authentication-related issues.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new ServiceAuthException with no detail message.ServiceAuthException(String message) Constructs a new ServiceAuthException with the specified detail message.ServiceAuthException(String message, Throwable cause) Constructs a new ServiceAuthException with the specified detail message and cause.ServiceAuthException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs a new ServiceAuthException with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.ServiceAuthException(Throwable cause) Constructs a new ServiceAuthException with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceAuthException
public ServiceAuthException()Constructs a new ServiceAuthException with no detail message. -
ServiceAuthException
Constructs a new ServiceAuthException with the specified detail message.- Parameters:
message- the detail message explaining the reason for the authentication failure
-
ServiceAuthException
Constructs a new ServiceAuthException with the specified detail message and cause.- Parameters:
message- the detail message explaining the reason for the authentication failurecause- the underlying cause of this exception
-
ServiceAuthException
Constructs a new ServiceAuthException with the specified cause.- Parameters:
cause- the underlying cause of this exception
-
ServiceAuthException
public ServiceAuthException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs a new ServiceAuthException with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.- Parameters:
message- the detail message explaining the reason for the authentication failurecause- the underlying cause of this exceptionenableSuppression- whether or not suppression is enabled or disabledwritableStackTrace- whether or not the stack trace should be writable
-