public override void OnException(MethodExecutionArgs args)
{
// Create a unique identifier for this exception.
Guid guid = Guid.NewGuid();
//Log de erro
var logger = log4net.LogManager.GetLogger("LogInFile");
logger.Error(args.Exception.Message);
// Replace the exception by a BusinessException.
args.Exception =
new BusinessException(string.Format("{0} {1} ",
guid, args.Exception.Message), args.Exception.InnerException);
args.FlowBehavior = FlowBehavior.Continue;
throw args.Exception;
}