Provides helper methods for dealing with exceptions.
More...
|
static void | LogException (Exception exception) |
| Outputs exception details to default logger. More...
|
|
Provides helper methods for dealing with exceptions.
static void TriDevs.TriEngine.Helpers.Exceptions.LogException |
( |
Exception |
exception | ) |
|
|
static |
Outputs exception details to default logger.
- Parameters
-
exception | The exception to log. |
58 if (exception is EngineException)
61 _log.ErrorFormat(
"{0} exception {1} occurred with message: {2}", type, exception.GetType(), exception.Message);
62 if (exception.InnerException != null)
63 _log.ErrorFormat(
"Inner exception {0} with message: {1}", exception.InnerException.GetType(),
64 exception.InnerException.Message);
65 _log.Error(
"Exception details:", exception);
66 if (exception.InnerException != null)
67 _log.Error(
"Exception details for inner:", exception.InnerException);
The documentation for this class was generated from the following file: