Sphyrnidae Common Library
2.0.1
Shared Utilities/Library
|
Allows exceptions to be handled within a contained method More...
Static Public Member Functions | |
static async Task< T > | OnException< T > (Func< Task< T >> method, Func< Exception, Task< T >> error) |
Wrapper which executes an asynchronous method safely, and allows the user to customize the exception handling asynchronously More... | |
static async Task< T > | OnException< T > (Func< Task< T >> method, Func< Exception, T > error) |
Wrapper which executes an asynchronous method safely, and allows the user to customize the exception handling More... | |
static Task< T > | OnException< T > (Func< T > method, Func< Exception, Task< T >> error) |
Wrapper which executes a method safely, and allows the user to customize the exception handling asynchronously More... | |
static T | OnException< T > (Func< T > method, Func< Exception, T > error) |
Wrapper which executes a method safely, and allows the user to customize the exception handling More... | |
static async Task< bool > | OnException (Func< Task > method, Func< Exception, Task< bool >> error) |
Wrapper which executes an asynchronous method safely, and allows the user to customize the exception handling asynchronously More... | |
static async Task< bool > | OnException (Func< Task > method, Func< Exception, bool > error) |
Wrapper which executes an asynchronous method safely, and allows the user to customize the exception handling More... | |
static Task< bool > | OnException (Action method, Func< Exception, Task< bool >> error) |
Wrapper which executes a method safely, and allows the user to customize the exception handling asynchronously More... | |
static bool | OnException (Action method, Func< Exception, bool > error) |
Wrapper which executes a method safely, and allows the user to customize the exception handling More... | |
static async Task< T > | IgnoreException< T > (Func< Task< T >> method, T defaultValue=default) |
Ensures that any exceptions thrown by the containing asynchronous method will be handled gracefully and code will resume past this block More... | |
static T | IgnoreException< T > (Func< T > method, T defaultValue=default) |
Ensures that any exceptions thrown by the containing method will be handled gracefully and code will resume past this block More... | |
static async Task< bool > | IgnoreException (Func< Task > method) |
Ensures that any exceptions thrown by the containing asynchronous method will be handled gracefully and code will resume past this block More... | |
static bool | IgnoreException (Action method) |
Ensures that any exceptions thrown by the containing method will be handled gracefully and code will resume past this block More... | |
static async Task< T > | EmailException< T > (IEmail email, IApplicationSettings app, Func< Task< T >> method, T defaultValue=default) |
Ensures that any exceptions thrown by the containing asynchronous method will be e-mailed and code will resume past this block More... | |
static Task< T > | EmailException< T > (IEmail email, IApplicationSettings app, Func< T > method, T defaultValue=default) |
Ensures that any exceptions thrown by the containing method will be e-mailed and code will resume past this block More... | |
static async Task< bool > | EmailException (IEmail email, IApplicationSettings app, Func< Task > method) |
Ensures that any exceptions thrown by the containing asynchronous method will be e-mailed and code will resume past this block More... | |
static Task< bool > | EmailException (IEmail email, IApplicationSettings app, Action method) |
Ensures that any exceptions thrown by the containing method will be e-mailed and code will resume past this block More... | |
static async Task< T > | LogException< T > (ILogger logger, Func< Task< T >> method, T defaultValue=default) |
Ensures that any exceptions thrown by the containing asynchronous method will be handled gracefully and code will resume past this block More... | |
static T | LogException< T > (ILogger logger, Func< T > method, T defaultValue=default) |
Ensures that any exceptions thrown by the containing method will be handled gracefully and code will resume past this block More... | |
static async Task< bool > | LogException (ILogger logger, Func< Task > method) |
Ensures that any exceptions thrown by the containing asynchronous method will be handled gracefully and code will resume past this block More... | |
static bool | LogException (ILogger logger, Action method) |
Ensures that any exceptions thrown by the containing method will be handled gracefully and code will resume past this block More... | |
Allows exceptions to be handled within a contained method
|
static |
Ensures that any exceptions thrown by the containing method will be e-mailed and code will resume past this block
The implementation of the IEmail interface | |
app | The implementation of the IApplicationSettings interface |
method | The method to execute which will have it's exceptions emailed |
|
static |
Ensures that any exceptions thrown by the containing asynchronous method will be e-mailed and code will resume past this block
The implementation of the IEmail interface | |
app | The implementation of the IApplicationSettings interface |
method | The asynchronous method to execute which will have it's exceptions emailed |
|
static |
Ensures that any exceptions thrown by the containing method will be e-mailed and code will resume past this block
T | The return type of the function |
The implementation of the IEmail interface | |
app | The implementation of the IApplicationSettings interface |
method | The method to execute which will have it's exceptions emailed |
defaultValue | If an exception is thrown, this will be returned instead. Default = default(t). Eg. null for most classes |
|
static |
Ensures that any exceptions thrown by the containing asynchronous method will be e-mailed and code will resume past this block
T | The return type of the function |
The implementation of the IEmail interface | |
app | The implementation of the IApplicationSettings interface |
method | The asynchronous method to execute which will have it's exceptions emailed |
defaultValue | If an exception is thrown, this will be returned instead. Default = default(t). Eg. null for most classes |
|
static |
Ensures that any exceptions thrown by the containing method will be handled gracefully and code will resume past this block
method | The method to execute which will have it's exceptions ignored |
|
static |
Ensures that any exceptions thrown by the containing asynchronous method will be handled gracefully and code will resume past this block
method | The asynchronous method to execute which will have it's exceptions ignored |
|
static |
Ensures that any exceptions thrown by the containing method will be handled gracefully and code will resume past this block
T | The return type of the function |
method | The method to execute which will have it's exceptions ignored |
defaultValue | If an exception is thrown, this will be returned instead. Default = default(t). Eg. null for most classes |
|
static |
Ensures that any exceptions thrown by the containing asynchronous method will be handled gracefully and code will resume past this block
T | The return type of the function |
method | The asynchronous method to execute which will have it's exceptions ignored |
defaultValue | If an exception is thrown, this will be returned instead. Default = default(t). Eg. null for most classes |
|
static |
Ensures that any exceptions thrown by the containing method will be handled gracefully and code will resume past this block
If an exception occurs, it will be logged out as a hidden exception
logger | The implementation of the ILogger interface |
method | The method to execute which will have it's exceptions ignored |
|
static |
Ensures that any exceptions thrown by the containing asynchronous method will be handled gracefully and code will resume past this block
If an exception occurs, it will be logged out as a hidden exception
logger | The implementation of the ILogger interface |
method | The asynchronous method to execute which will have it's exceptions ignored |
|
static |
Ensures that any exceptions thrown by the containing method will be handled gracefully and code will resume past this block
If an exception occurs, it will be logged out as a hidden exception
T | The return type of the function |
logger | The ILogger implementation |
method | The method to execute which will have it's exceptions ignored |
defaultValue | If an exception is thrown, this will be returned instead. Default = default(t). Eg. null for most classes |
|
static |
Ensures that any exceptions thrown by the containing asynchronous method will be handled gracefully and code will resume past this block
If an exception occurs, it will be logged out as a hidden exception
T | The return type of the function |
logger | The ILogger implementation |
method | The asynchronous method to execute which will have it's exceptions ignored |
defaultValue | If an exception is thrown, this will be returned instead. Default = default(t). Eg. null for most classes |
|
static |
Wrapper which executes a method safely, and allows the user to customize the exception handling
method | The method to execute which will have it's exceptions sent to error method |
error | The method to execute if the main method throws an exception |
|
static |
Wrapper which executes a method safely, and allows the user to customize the exception handling asynchronously
method | The method to execute which will have it's exceptions sent to error method |
error | The asynchronous method to execute if the main method throws an exception |
|
static |
Wrapper which executes an asynchronous method safely, and allows the user to customize the exception handling
method | The asynchronous method to execute which will have it's exceptions sent to error method |
error | The method to execute if the main method throws an exception |
|
static |
Wrapper which executes an asynchronous method safely, and allows the user to customize the exception handling asynchronously
method | The asynchronous method to execute which will have it's exceptions sent to error method |
error | The asynchronous method to execute if the main method throws an exception |
|
static |
Wrapper which executes a method safely, and allows the user to customize the exception handling
T | The return type of the function |
method | The method to execute which will have it's exceptions sent to error method |
error | The method to execute if the main method throws an exception |
|
static |
Wrapper which executes a method safely, and allows the user to customize the exception handling asynchronously
T | The return type of the function |
method | The method to execute which will have it's exceptions sent to error method |
error | The asynchronous method to execute if the main method throws an exception |
|
static |
Wrapper which executes an asynchronous method safely, and allows the user to customize the exception handling
T | The return type of the function |
method | The asynchronous method to execute which will have it's exceptions sent to error method |
error | The method to execute if the main method throws an exception |
|
static |
Wrapper which executes an asynchronous method safely, and allows the user to customize the exception handling asynchronously
T | The return type of the function |
method | The asynchronous method to execute which will have it's exceptions sent to error method |
error | The asynchronous method to execute if the main method throws an exception |