// Copyright 2015-present 650 Industries. All rights reserved. package expo.modules.sqlite import expo.modules.core.interfaces.DoNotStrip import expo.modules.kotlin.exception.CodedException internal class OpenDatabaseException(name: String) : CodedException("Could not open database - name[$name]") internal class DatabaseNotFoundException(name: String) : CodedException("Database '$name' not found") internal class DeleteDatabaseException(name: String) : CodedException("Unable to delete database '$name' that is currently open. Close it prior to deletion.") internal class DeleteDatabaseFileException(name: String) : CodedException("Unable to delete the database file for '$name' database") @DoNotStrip internal class SQLiteErrorException(message: String) : CodedException("ERR_INTERNAL_SQLITE_ERROR", message, null) @DoNotStrip internal class InvalidConvertibleException(message: String) : CodedException(message) internal class AccessClosedResourceException : CodedException("Access to closed resource") internal class InvalidBindParameterException : CodedException("Invalid bind parameter")