public class ErrorTokenSource extends Object implements TokenSource
| Constructor and Description |
|---|
ErrorTokenSource(String errorMessage)
Constructs a new ErrorTokenSource with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
Token |
getToken()
Always throws a DatabricksException with the configured error message.
|
public ErrorTokenSource(String errorMessage)
errorMessage - The error message that will be thrown when attempting to get a tokenNullPointerException - if errorMessage is nullpublic Token getToken()
getToken in interface TokenSourceDatabricksException - with the configured error messageCopyright © 2025. All rights reserved.