fix: Add toast error #2159

This commit is contained in:
J-Jamet
2025-09-14 13:17:49 +02:00
parent 2f9e1e4bf2
commit 672f1ca37d
46 changed files with 89 additions and 81 deletions

View File

@@ -19,12 +19,20 @@
*/
package com.kunzisoft.keepass.database.exception
import android.content.res.Resources
import com.kunzisoft.keepass.database.element.node.NodeId
import com.kunzisoft.keepass.database.element.node.Type
import java.io.PrintStream
import java.io.PrintWriter
abstract class DatabaseException : Exception {
abstract class LocalizedException : Exception {
constructor() : super()
constructor(message: String) : super(message)
// TODO
// open fun getLocalizedMessage(resources: Resources): String? = localizedMessage
}
abstract class DatabaseException : LocalizedException {
var innerMessage: String? = null
var parameters = mutableListOf<String>()
@@ -75,6 +83,8 @@ class InvalidAlgorithmDatabaseException : DatabaseInputException {
class UnknownDatabaseLocationException : DatabaseException()
class RegisterInReadOnlyDatabaseException() : DatabaseException()
class HardwareKeyDatabaseException : DatabaseException()
class EmptyKeyDatabaseException : DatabaseException()