using System;
using System.Collections.Generic;
using System.Text;

namespace Westwind.Web.Controls
{

    /// <summary>
    /// Marker Attribute to be used on Callback methods. Signals
    /// parser that the method is allowed to be executed remotely
    /// </summary>
    public class CallbackMethodAttribute : Attribute
    {
    }

    /// <summary>
    /// Special return type used to indicate that an exception was
    /// fired on the server. This object is JSON serialized and the
    /// client can check for Result.IsCallbackError to see if a 
    /// a failure occured on the server.
    /// </summary>
    [Serializable]
    public class CallbackException
    {
        public bool isCallbackError = true;
        public string message = "";
    }

}
