| | |
| | | |
| | | public static Result<T> CatchExceptionWithLog<T>(this Result<T> result, Exception ex, Locale localeMsg) |
| | | { |
| | | result.CatchExceptionWithLog(ex, localeMsg); |
| | | result.CatchException(ex, localeMsg); |
| | | Logger.Default.Fatal(ex, localeMsg.Default()); |
| | | return result; |
| | | } |
| | |
| | | |
| | | public static Result<T> CatchExceptionWithLog<T>(this Result<T> result, Exception ex, string msg = null) |
| | | { |
| | | result.CatchExceptionWithLog(ex, msg); |
| | | result.CatchException(ex, msg); |
| | | Logger.Default.Fatal(ex, msg); |
| | | return result; |
| | | } |
| | |
| | | |
| | | public static Result CatchExceptionWithLog(this Result result, Exception ex, Locale localeMsg) |
| | | { |
| | | result.CatchExceptionWithLog(ex, localeMsg); |
| | | result.CatchException(ex, localeMsg); |
| | | Logger.Default.Fatal(ex, localeMsg.Default()); |
| | | return result; |
| | | } |
| | |
| | | |
| | | public static Result CatchExceptionWithLog(this Result result, Exception ex, string msg = null) |
| | | { |
| | | result.CatchExceptionWithLog(ex, msg); |
| | | result.CatchException(ex, msg); |
| | | Logger.Default.Fatal(ex, msg); |
| | | return result; |
| | | } |