File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class SqliteConnectionPool with SqliteQueries implements SqliteConnection {
5353 @override
5454 Future <bool > getAutoCommit () async {
5555 if (_writeConnection == null ) {
56- throw AssertionError ( 'Closed' );
56+ throw ClosedException ( );
5757 }
5858 return await _writeConnection! .getAutoCommit ();
5959 }
@@ -118,7 +118,7 @@ class SqliteConnectionPool with SqliteQueries implements SqliteConnection {
118118 Future <T > writeLock <T >(Future <T > Function (SqliteWriteContext tx) callback,
119119 {Duration ? lockTimeout, String ? debugContext}) {
120120 if (closed) {
121- throw AssertionError ( 'Closed' );
121+ throw ClosedException ( );
122122 }
123123 if (_writeConnection? .closed == true ) {
124124 _writeConnection = null ;
You can’t perform that action at this time.
0 commit comments