ldbc.connector.exception.SQLInvalidAuthorizationSpecException.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ldbc-connector_sjs1_3 Show documentation
Show all versions of ldbc-connector_sjs1_3 Show documentation
MySQL connector written in pure Scala3
The newest version!
/**
* Copyright (c) 2023-2024 by Takahiko Tominaga
* This software is licensed under the MIT License (MIT).
* For more information see LICENSE or https://opensource.org/licenses/MIT
*/
package ldbc.connector.exception
import scala.collection.immutable.SortedMap
import ldbc.connector.data.Parameter
/**
* The subclass of {@link SQLException} thrown when the SQLState class value
* is '28', or under vendor-specified conditions. This indicates that
* the authorization credentials presented during connection establishment
* are not valid.
*/
class SQLInvalidAuthorizationSpecException(
message: String,
sqlState: Option[String] = None,
vendorCode: Option[Int] = None,
sql: Option[String] = None,
detail: Option[String] = None,
hint: Option[String] = None,
params: SortedMap[Int, Parameter] = SortedMap.empty
) extends SQLNonTransientException(message, sqlState, vendorCode, sql, detail, hint, params)