Changed Exception catch types. Removed trying to insert to ID field
This commit is contained in:
parent
236cf6b42b
commit
b74455433e
6 changed files with 27 additions and 28 deletions
|
|
@ -74,7 +74,7 @@ namespace TShockAPI.DB
|
|||
return true;
|
||||
}
|
||||
}
|
||||
catch (SqliteExecutionException ex)
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex.ToString());
|
||||
}
|
||||
|
|
@ -94,7 +94,7 @@ namespace TShockAPI.DB
|
|||
return true;
|
||||
}
|
||||
}
|
||||
catch (SqliteExecutionException ex)
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex.ToString());
|
||||
}
|
||||
|
|
@ -120,7 +120,7 @@ namespace TShockAPI.DB
|
|||
return false;
|
||||
}
|
||||
}
|
||||
catch (SqliteExecutionException ex)
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex.ToString());
|
||||
return false;
|
||||
|
|
@ -162,7 +162,7 @@ namespace TShockAPI.DB
|
|||
}
|
||||
return false;
|
||||
}
|
||||
catch (SqliteExecutionException ex)
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex.ToString());
|
||||
return false;
|
||||
|
|
@ -223,7 +223,7 @@ namespace TShockAPI.DB
|
|||
return false;
|
||||
}
|
||||
}
|
||||
catch (SqliteExecutionException ex)
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex.ToString());
|
||||
return false;
|
||||
|
|
@ -245,7 +245,7 @@ namespace TShockAPI.DB
|
|||
}
|
||||
}
|
||||
}
|
||||
catch (SqliteExecutionException ex)
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex.ToString());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue