Answer the question
In order to leave comments, you need to log in
Why is the exception not being caught?
There is the following Dart code:
try
{
print("!1111111111");
await db.KVToTableInsert(tableToInsert);
print("!2222222222");
return dbEnums.success;
} on PostgreSQLException
{
print("Fail is here");
}
!1111111111
Unhandled exception:
PostgreSQLSeverity.unknown 23505
KVToTableInsert(String tablename, Map jsonMap) async {
// print(jsonMap);
List insertNoticeKeys = [];
List insertNoticeValues = [];
jsonMap.forEach((key, value) async {
if (value is List) // nested
{
value.forEach((item) async {
await KVToTableInsert(key, item);
});
} else {
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question