Database exception helper
More...
|
| static Result | Catch (System.Exception exception, System.Data.IDbCommand command) |
| | Check exception from database connection. More...
|
| |
| static int [] | GetErrorNumber (System.Exception exception) |
| | Get array of error numbers from database exception More...
|
| |
Database exception helper
◆ Catch()
| static Result Energy.Source.Error.Catch |
( |
System.Exception |
exception, |
|
|
System.Data.IDbCommand |
command |
|
) |
| |
|
static |
Check exception from database connection.
True for timeout and damaged connections. They may be repeated. False otherwise which means that operation may not have a chance to succeed.
If exception may be temporary and can disappear after repeat, this function results true. If result is false, operation like syntax error is final and repeating command makes no sense.
Returns true if operation can be repeated.
- Parameters
-
- Returns
- True if operation can be repeated.
◆ GetErrorNumber()
| static int [] Energy.Source.Error.GetErrorNumber |
( |
System.Exception |
exception | ) |
|
|
static |
Get array of error numbers from database exception
- Parameters
-
- Returns
The documentation for this class was generated from the following file: