protected virtual ExceptionState LogError(IInvocation invocation, Exception error) { ILog log = _logFactory(invocation.TargetType); log.Info(handler => handler(LoggingResources.MethodInfoFormat, invocation.Method.Name, LoggingResources.MethodInfoFail)); log.Error(handler => handler(LoggingResources.ExceptionErrorFormat, invocation.Method.Name, error.ToFullString())); return new ExceptionState(error, _config.TrapExceptions); }
private void ShowError(Exception ex) { ShowError(ex.ToFullString()); }