コード例 #1
0
        protected bool IsErrorHandled(object currentObject, JsonContract contract, object keyValue, Exception ex)
        {
            ErrorContext errorContext = GetErrorContext(currentObject, keyValue, ex);

            contract.InvokeOnError(currentObject, Serializer.Context, errorContext);

            if (!errorContext.Handled)
            {
                Serializer.OnError(new ErrorEventArgs(currentObject, errorContext));
            }

            return(errorContext.Handled);
        }